Try to fix return code from jenkins test run.
authorCarl Hetherington <cth@carlh.net>
Mon, 15 May 2017 13:48:16 +0000 (14:48 +0100)
committerCarl Hetherington <cth@carlh.net>
Mon, 15 May 2017 13:48:16 +0000 (14:48 +0100)
run/tests

index d9815a449ae619ba6a55678584599908b2202ac3..b8bb094a0690ded6e8df61bc8a8ce8e277cde936 100755 (executable)
--- a/run/tests
+++ b/run/tests
@@ -9,7 +9,7 @@ if [ "$1" == "--debug" ]; then
     gdb --args build/test/unit-tests --catch_system_errors=no $*
 elif [ "$1" == "--backtrace" ]; then
     shift;
-    gdb -batch -ex "run" -ex "thread apply all bt" --args build/test/unit-tests --catch_system_errors=no $*
+    gdb -batch -ex "run" -ex "thread apply all bt" -return-child-result --args build/test/unit-tests --catch_system_errors=no $*
 elif [ "$1" == "--valgrind" ]; then
     shift;
     valgrind --tool="memcheck" --leak-check=full build/test/unit-tests $*