Skip to content
This repository has been archived by the owner on Dec 13, 2024. It is now read-only.

Ensure test-image-openj9 target fails when java -version fails #62

Merged
merged 1 commit into from
Jan 23, 2023

Conversation

jdmpapin
Copy link
Contributor

Previously, the exit status could come from tee, which succeeds.

There is logic in make/autoconf/basics.m4 that checks for support and then opportunistically adds -o pipefail to SHELL in the makefiles, which already accomplishes the same thing, but only when pipefail support is detected. That should be most of the time, but it's not obvious that we should expect pipefail support in all cases.

With this change, the target will fail whenever java -version fails, regardless of the pipefail setting.

Previously, the exit status could come from tee, which succeeds.

There is logic in make/autoconf/basics.m4 that checks for support and
then opportunistically adds -o pipefail to SHELL in the makefiles, which
already accomplishes the same thing, but only when pipefail support is
detected. That should be most of the time, but it's not obvious that we
should expect pipefail support in all cases.

With this change, the target will fail whenever java -version fails,
regardless of the pipefail setting.
@jdmpapin jdmpapin force-pushed the version-exit-status branch from 87b69c0 to b127aac Compare January 23, 2023 20:05
@jdmpapin
Copy link
Contributor Author

Added quotes for consistency

@keithc-ca
Copy link
Member

Jenkins compile amac jdk19

@keithc-ca keithc-ca merged commit be0b953 into ibmruntimes:openj9 Jan 23, 2023
@jdmpapin jdmpapin deleted the version-exit-status branch April 21, 2023 22:36
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants