Skip to content
Snippets Groups Projects
Commit cc5919f3 authored by nimrod's avatar nimrod
Browse files

- Added cleanup to receiver script, added to test.

parent 1e1f9009
Branches
No related tags found
No related merge requests found
......@@ -36,4 +36,7 @@ then
echo '----> Running receiver ...'
./receiver
fi
echo '----> Cleanup ...'
cd -
rm -rf /var/tmp/gitreceive
echo '----> OK.'
......@@ -10,7 +10,7 @@ def test_gitreceive(Command, Sudo):
assert push.rc == 0
for message in ['----> Unpacking ...', '----> Fetching submodules ...',
'----> Running receiver ...', 'Dummy receiver script',
'----> OK.']:
'----> Cleanup ...', '----> OK.']:
assert message in push.stderr
with Sudo():
second_push = Command('git -C /root/gitreceive-test push test master')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment