Skip to content

Commit

Permalink
Fail test-image-openj9 target when java -version fails
Browse files Browse the repository at this point in the history
Previously, the exit status would come from tee, which succeeded.

Signed-off-by: Devin Papineau <devin@ajdmp.ca>
  • Loading branch information
jdmpapin committed Jan 9, 2023
1 parent 65d61b6 commit ad056dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion closed/make/Main.gmk
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ test-image : test-image-openj9
test-image-openj9 : images
@+$(MAKE) $(MAKE_ARGS) -f $(SRC_ROOT)/closed/TestImage.gmk
ifneq ($(COMPILE_TYPE), cross)
$(JRE_IMAGE_DIR)/bin/java -version 2>&1 | $(TEE) $(IMAGES_OUTPUTDIR)/test/openj9/java-version.txt
$(JRE_IMAGE_DIR)/bin/java -version >$(IMAGES_OUTPUTDIR)/test/openj9/java-version.txt 2>&1; rc=$$?; cat $(IMAGES_OUTPUTDIR)/test/openj9/java-version.txt; exit "$$rc"
endif

clean-docs : clean-openj9-only-docs
Expand Down

0 comments on commit ad056dd

Please sign in to comment.