changeset 48136:fe7596497fb0

8179555: make run-test should always use a fresh, clean JTwork directory Reviewed-by: erikj
author ihse
date Mon, 27 Nov 2017 19:14:42 +0100
parents a182ac1491d7
children 5434db052a08
files make/RunTests.gmk
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/make/RunTests.gmk	Mon Nov 27 19:13:20 2017 +0100
+++ b/make/RunTests.gmk	Mon Nov 27 19:14:42 2017 +0100
@@ -411,7 +411,10 @@
     $1_JTREG_BASIC_OPTIONS += -cpa:$$(JIB_JAR)
   endif
 
-  run-test-$1:
+  clean-workdir-$1:
+	$$(RM) -r $$($1_TEST_SUPPORT_DIR)
+
+  run-test-$1: clean-workdir-$1
 	$$(call LogWarn)
 	$$(call LogWarn, Running test '$$($1_TEST)')
 	$$(call MakeDir, $$($1_TEST_RESULTS_DIR) $$($1_TEST_SUPPORT_DIR))