From e30e3564420c631f08ac3d613ab91c93227a00b3 Mon Sep 17 00:00:00 2001 From: Leo Korinth Date: Wed, 20 Sep 2023 13:04:45 +0000 Subject: [PATCH] 8316461: Fix: make test outputs TEST SUCCESS after unsuccessful exit Reviewed-by: ihse, erikj --- make/RunTests.gmk | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/make/RunTests.gmk b/make/RunTests.gmk index 25dcdbb083d..75b19cbb2b3 100644 --- a/make/RunTests.gmk +++ b/make/RunTests.gmk @@ -862,8 +862,9 @@ define SetupRunJtregTestBody $$(eval $$(call SetupRunJtregTestCustom, $1)) - clean-workdir-$1: + clean-outputdirs-$1: $$(RM) -r $$($1_TEST_SUPPORT_DIR) + $$(RM) -r $$($1_TEST_RESULTS_DIR) $1_COMMAND_LINE := \ $$(JAVA) $$($1_JTREG_LAUNCHER_OPTIONS) \ @@ -909,7 +910,7 @@ define SetupRunJtregTestBody done endif - run-test-$1: pre-run-test clean-workdir-$1 + run-test-$1: pre-run-test clean-outputdirs-$1 $$(call LogWarn) $$(call LogWarn, Running test '$$($1_TEST)') $$(call MakeDir, $$($1_TEST_RESULTS_DIR) $$($1_TEST_SUPPORT_DIR) \ @@ -946,9 +947,9 @@ define SetupRunJtregTestBody $$(eval $1_TOTAL := 1) \ ) - $1: run-test-$1 parse-test-$1 clean-workdir-$1 + $1: run-test-$1 parse-test-$1 clean-outputdirs-$1 - TARGETS += $1 run-test-$1 parse-test-$1 clean-workdir-$1 + TARGETS += $1 run-test-$1 parse-test-$1 clean-outputdirs-$1 TEST_TARGETS += parse-test-$1 endef