make/RunTestsPrebuilt.gmk
changeset 54382 61616f509ef8
parent 53526 688ce88f89cd
child 55098 609dc5c60c06
child 58678 9cf78a70fa4f
--- a/make/RunTestsPrebuilt.gmk	Tue Apr 02 17:10:09 2019 +0200
+++ b/make/RunTestsPrebuilt.gmk	Tue Apr 02 08:19:36 2019 -0700
@@ -338,6 +338,12 @@
 
 run-test-prebuilt:
 	@$(RM) -f $(MAKESUPPORT_OUTPUTDIR)/exit-with-error
+        # The lazy initialization of the cache file in FindTests.gmk does not
+        # always work with RunTests.gmk. To guarantee that the jtreg test groups
+        # are always found and parsed, call FindTests.gmk stand alone once
+        # before calling RunTests.gmk.
+	@cd $(TOPDIR) && $(MAKE) $(MAKE_ARGS) -f make/common/FindTests.gmk \
+	    SPEC=$(SPEC) FINDTESTS_STAND_ALONE=true
 	@cd $(TOPDIR) && $(MAKE) $(MAKE_ARGS) -f make/RunTests.gmk run-test \
 	    TEST="$(TEST)"