Skip to content

Commit bd73a06

Browse files
committed
8300339: Run jtreg in the work dir
Reviewed-by: erikj
1 parent b98d6ae commit bd73a06

File tree

1 file changed

+17
-14
lines changed

1 file changed

+17
-14
lines changed

make/RunTests.gmk

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -995,24 +995,27 @@ define SetupRunJtregTestBody
995995
$$(RM) -r $$($1_TEST_SUPPORT_DIR)
996996
$$(RM) -r $$($1_TEST_RESULTS_DIR)
997997

998+
$1_JTREG_ARGUMENTS := \
999+
$$($1_JTREG_LAUNCHER_OPTIONS) \
1000+
-Dprogram=jtreg -jar $$(JT_HOME)/lib/jtreg.jar \
1001+
$$($1_JTREG_BASIC_OPTIONS) \
1002+
-testjdk:$$(JDK_UNDER_TEST) \
1003+
-dir:$$(JTREG_TOPDIR) \
1004+
-reportDir:$$($1_TEST_RESULTS_DIR) \
1005+
-workDir:$$($1_TEST_SUPPORT_DIR) \
1006+
-report:$${JTREG_REPORT} \
1007+
$$$${JTREG_STATUS} \
1008+
$$(JTREG_OPTIONS) \
1009+
$$(JTREG_FAILURE_HANDLER_OPTIONS) \
1010+
$$(JTREG_COV_OPTIONS) \
1011+
$$($1_TEST_NAME) \
1012+
#
1013+
9981014
$1_COMMAND_LINE := \
999-
$$(JTREG_JAVA) $$($1_JTREG_LAUNCHER_OPTIONS) \
1000-
-Dprogram=jtreg -jar $$(JT_HOME)/lib/jtreg.jar \
1001-
$$($1_JTREG_BASIC_OPTIONS) \
1002-
-testjdk:$$(JDK_UNDER_TEST) \
1003-
-dir:$$(JTREG_TOPDIR) \
1004-
-reportDir:$$($1_TEST_RESULTS_DIR) \
1005-
-workDir:$$($1_TEST_SUPPORT_DIR) \
1006-
-report:$${JTREG_REPORT} \
1007-
$$$${JTREG_STATUS} \
1008-
$$(JTREG_OPTIONS) \
1009-
$$(JTREG_FAILURE_HANDLER_OPTIONS) \
1010-
$$(JTREG_COV_OPTIONS) \
1011-
$$($1_TEST_NAME) \
1015+
cd $$($1_TEST_SUPPORT_DIR) && $$(JTREG_JAVA) $$($1_JTREG_ARGUMENTS) \
10121016
&& $$(ECHO) $$$$? > $$($1_EXITCODE) \
10131017
|| $$(ECHO) $$$$? > $$($1_EXITCODE)
10141018

1015-
10161019
ifneq ($$(JTREG_RETRY_COUNT), 0)
10171020
$1_COMMAND_LINE := \
10181021
for i in {0..$$(JTREG_RETRY_COUNT)}; do \

0 commit comments

Comments
 (0)