Output result to file to be polled

This commit is contained in:
Bob Ball 2014-02-15 15:02:30 +00:00
parent 4b4441390c
commit c8934a07a0

View File

@ -114,9 +114,9 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
function trapexit {
exit_code=$?
if [ $exit_code -eq 0 ]; then
echo "Final result: Tests passed"
echo "Final result: Tests passed" | tee ~/result.txt
else
echo "Final result: Tests failed"
echo "Final result: Tests failed" | tee ~/result.txt
fi
# Do not use 'exit' - bash will preserve the status