Skip to content

Commit

Permalink
8265978: make test should look for more locations when searching for …
Browse files Browse the repository at this point in the history
…exit code

Reviewed-by: sgehwolf
  • Loading branch information
shipilev committed Jul 6, 2021
1 parent 060aed1 commit 88ec52f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion common/autoconf/generated-configure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4399,7 +4399,7 @@ VS_SDK_PLATFORM_NAME_2017=
#CUSTOM_AUTOCONF_INCLUDE

# Do not change or remove the following line, it is needed for consistency checks:
DATE_WHEN_GENERATED=1625577583
DATE_WHEN_GENERATED=1625580632

###############################################################################
#
Expand Down
8 changes: 7 additions & 1 deletion make/Main.gmk
Original file line number Diff line number Diff line change
Expand Up @@ -178,17 +178,23 @@ bootcycle-images-only: start-make
@$(ECHO) Boot cycle build step 2: Building a new JDK image using previously built image
@($(CD) $(SRC_ROOT) && $(BUILD_LOG_WRAPPER) $(MAKE) SPEC=$(dir $(SPEC))bootcycle-spec.gmk images)

# If the tests produced a $(TEST)_exitcode.txt file, use the number in that
# If the tests produced an exitcode.txt file, use the number in that
# file for the exit code of the "make test" invocation.
test: images test-only
test-only: start-make
@$(call TargetEnter)
@($(CD) $(SRC_ROOT)/test && $(BUILD_LOG_WRAPPER) $(MAKE) -j1 -k MAKEFLAGS= JT_HOME=$(JT_HOME) PRODUCT_HOME=$(JDK_IMAGE_DIR) ALT_OUTPUTDIR=$(OUTPUT_ROOT) CONCURRENCY=$(JOBS) $(TEST)) || true
@$(call TargetExit)
@$(ECHO) Testing for $(OUTPUT_ROOT)/testoutput/$(TEST)_exitcode.txt
@(if [ -r $(OUTPUT_ROOT)/testoutput/$(TEST)_exitcode.txt ]; then \
EXIT=$$($(CAT) $(OUTPUT_ROOT)/testoutput/$(TEST)_exitcode.txt); \
exit $${EXIT}; \
fi)
@$(ECHO) Testing for $(OUTPUT_ROOT)/testoutput/$(TEST)/exitcode.txt
@(if [ -r $(OUTPUT_ROOT)/testoutput/$(TEST)/exitcode.txt ]; then \
EXIT=$$($(CAT) $(OUTPUT_ROOT)/testoutput/$(TEST)/exitcode.txt); \
exit $${EXIT}; \
fi)

# Stores the tips for each repository. This file is be used when constructing the jdk image and can be
# used to track the exact sources used to build that image.
Expand Down

0 comments on commit 88ec52f

Please sign in to comment.