diff options
author | Neil Roberts <neil@linux.intel.com> | 2011-11-30 11:20:11 +0000 |
---|---|---|
committer | Neil Roberts <neil@linux.intel.com> | 2011-12-07 19:01:48 +0000 |
commit | fcaca87fd452511fb8965eeb4019dcbadc84d075 (patch) | |
tree | bf579fd900dfa8d13bc7da4bd70ed5cbb3b6d525 | |
parent | 4c8966122f0e5bc6866f14dc5eeadad3142ff9a0 (diff) | |
download | cogl-fcaca87fd452511fb8965eeb4019dcbadc84d075.tar.gz |
test-launcher: Pass on the exit code
This makes the test launcher script pass on the exit code from the
conformance test as its own exit status. This makes using a particular
test with git bisect run easier.
https://bugzilla.gnome.org/show_bug.cgi?id=665190
Reviewed-by: Robert Bragg <robert@linux.intel.com>
-rwxr-xr-x | tests/conform/test-launcher.sh.in | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/conform/test-launcher.sh.in b/tests/conform/test-launcher.sh.in index 0be13bda..5abe2851 100755 --- a/tests/conform/test-launcher.sh.in +++ b/tests/conform/test-launcher.sh.in @@ -13,6 +13,7 @@ UNIT_TEST=`basename ${UNIT_TEST_PATH}` echo "Running: ./test-conformance -p ${UNIT_TEST_PATH} $@" echo "" @abs_builddir@/test-conformance -p ${UNIT_TEST_PATH} "$@" +exit_val=$? echo "" echo "NOTE: For debugging purposes, you can run this single test as follows:" @@ -23,3 +24,5 @@ echo "or:" echo "$ env G_SLICE=always-malloc \\" echo " libtool --mode=execute \\" echo " valgrind ./test-conformance -p ${UNIT_TEST_PATH}" + +exit $exit_val |