diff --git a/run_tests.sh b/run_tests.sh index f62b967..ce5f85f 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -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