Save exit code in exitcode.txt. ihse-testmakefiles-branch
authorihse
Tue, 28 Nov 2017 10:21:25 +0100
branchihse-testmakefiles-branch
changeset 55901 4906ef23c9a0
parent 55900 9a7dc96eb3ba
child 55913 deb731bd1dc3
Save exit code in exitcode.txt.
make/RunTests.gmk
--- a/make/RunTests.gmk	Tue Nov 28 09:49:11 2017 +0100
+++ b/make/RunTests.gmk	Tue Nov 28 10:21:25 2017 +0100
@@ -284,7 +284,8 @@
 	    -jdk $(JDK_IMAGE_DIR) $$($1_GTEST_FILTER) \
 	    --gtest_output=xml:$$($1_TEST_RESULTS_DIR)/gtest.xml \
 	    $$($1_GTEST_REPEAT) $$(GTEST_OPTIONS) \
-	    > >($(TEE) $$($1_TEST_RESULTS_DIR)/gtest.txt) || true )
+	    > >($(TEE) $$($1_TEST_RESULTS_DIR)/gtest.txt) ; \
+	    $$(ECHO) $$$$? > $$($1_TEST_RESULTS_DIR)/exitcode.txt )
 
   $1_RESULT_FILE := $$($1_TEST_RESULTS_DIR)/gtest.txt
 
@@ -440,7 +441,8 @@
 	        -reportDir:$$($1_TEST_RESULTS_DIR) \
 	        -workDir:$$($1_TEST_SUPPORT_DIR) \
 	        $$(JTREG_OPTIONS) \
-	        $$($1_TEST_NAME) || true )
+	        $$($1_TEST_NAME) ; \
+	    $$(ECHO) $$$$? > $$($1_TEST_RESULTS_DIR)/exitcode.txt )
 
   $1_RESULT_FILE := $$($1_TEST_RESULTS_DIR)/text/stats.txt