Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

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.

closed/custom/Main.gmk Outdated Show resolved Hide resolved
@keithc-ca keithc-ca self-assigned this Jan 19, 2023
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
Copy link
Contributor Author

Added quotes for consistency

@keithc-ca
Copy link
Member

Jenkins compile alinux64 jdk11

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

Successfully merging this pull request may close these issues.

2 participants