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

_execute: return tuple of success, logs #73

Merged
merged 2 commits into from
Nov 28, 2024
Merged

Conversation

jmtd
Copy link
Collaborator

@jmtd jmtd commented Nov 28, 2024

Adjust _execute to return the success/failure status of the command and the commands output as two separate values, paired.

Adjust s2i_inner to reflect the altered return type, and to assign the returned output to s2i_build_log in the success and failure cases.

Fixes #72.

Adjust _execute to return the success/failure status of the command
and the commands output as two separate values, paired.

Adjust s2i_inner to reflect the altered return type, and to assign
the returned output to s2i_build_log in the success and failure
cases.

Fixes cekit#72.

Signed-off-by: Jonathan Dowland <[email protected]>
jmtd added a commit to jmtd/redhat-openjdk-container-images that referenced this pull request Nov 28, 2024
The jlink feature will initially ship as TP.

Repurpose older unit test to check for the TP warning (older test
is redundant as it only worked if jmods are installed). The test
depends upon this being merged first:
cekit/behave-test-steps#73

https://issues.redhat.com/browse/OPENJDK-3038

Signed-off-by: Jonathan Dowland <[email protected]>
Signed-off-by: Jonathan Dowland <[email protected]>
@jmtd jmtd merged commit ca379e0 into cekit:v1 Nov 28, 2024
1 check passed
@jmtd jmtd deleted the execute-return-type branch November 28, 2024 16:36
jmtd added a commit to jmtd/redhat-openjdk-container-images that referenced this pull request Dec 2, 2024
The jlink feature will initially ship as TP.

Repurpose older unit test to check for the TP warning (older test
is redundant as it only worked if jmods are installed). The test
depends upon this being merged first:
cekit/behave-test-steps#73

https://issues.redhat.com/browse/OPENJDK-3038

Signed-off-by: Jonathan Dowland <[email protected]>
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.

s2i steps: cannot check logs when s2i build fails
2 participants