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.
  • Loading branch information
jdmpapin committed Jan 19, 2023
1 parent 65d61b6 commit 48f2511
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions closed/make/Main.gmk
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# ===========================================================================
# (c) Copyright IBM Corp. 2017, 2022 All Rights Reserved
# (c) Copyright IBM Corp. 2017, 2023 All Rights Reserved
# ===========================================================================
# This code is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License version 2 only, as
Expand Down 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
rc=0; $(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 48f2511

Please sign in to comment.