From 05ab545758bdb46d3c8a598d9d6b7a038b5da0d3 Mon Sep 17 00:00:00 2001 From: Christian Tornqvist Date: Tue, 18 Oct 2016 06:14:35 -0400 Subject: [PATCH] 8166738: Enable concurrency in Hotspot jtreg testing Reviewed-by: gtriantafill, erikj, sspitsyn --- test/Makefile | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/test/Makefile b/test/Makefile index 41a20170e0e..49a47fd5230 100644 --- a/test/Makefile +++ b/test/Makefile @@ -74,13 +74,14 @@ jdk_% core_%s svc_%: jaxp_%: @$(NO_STOPPING)$(call SUBDIR_TEST, $(JAXP_DIR), CONCURRENCY=$(JDK_TEST_JOBS) TEST="$@" $@) -ifeq ($(TEST_JOBS), 0) - HOTSPOT_TEST_JOBS=1 -else - HOTSPOT_TEST_JOBS=$(TEST_JOBS) +SUB_MAKE_ARGS := +ifneq ($(TEST_JOBS), 0) + ifneq ($(TEST_JOBS), ) + SUB_MAKE_ARGS += CONCURRENCY=$(TEST_JOBS) + endif endif hotspot_%: - @$(NO_STOPPING)$(call SUBDIR_TEST, $(HOTSPOT_DIR), CONCURRENCY=$(HOTSPOT_TEST_JOBS) TEST="$@" $@) + @$(NO_STOPPING)$(call SUBDIR_TEST, $(HOTSPOT_DIR), $(SUB_MAKE_ARGS) TEST="$@" $@) # # jtreg_tests