Output result to file to be polled
This commit is contained in:
parent
4b4441390c
commit
c8934a07a0
@ -114,9 +114,9 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
|
|||||||
function trapexit {
|
function trapexit {
|
||||||
exit_code=$?
|
exit_code=$?
|
||||||
if [ $exit_code -eq 0 ]; then
|
if [ $exit_code -eq 0 ]; then
|
||||||
echo "Final result: Tests passed"
|
echo "Final result: Tests passed" | tee ~/result.txt
|
||||||
else
|
else
|
||||||
echo "Final result: Tests failed"
|
echo "Final result: Tests failed" | tee ~/result.txt
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Do not use 'exit' - bash will preserve the status
|
# Do not use 'exit' - bash will preserve the status
|
||||||
|
Loading…
Reference in New Issue
Block a user