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

Exit from mktree on failure #2740

Merged

Conversation

dmnks
Copy link
Contributor

@dmnks dmnks commented Oct 31, 2023

Right now, if the podman image fails to build or rpm fails to build/install, we happily continue and run the test-suite, only to eventually fail with some cryptic error, such as:

error: cannot find rpm

Not too helpful, indeed. Instead, just fail the whole tree preparation process if we encounter an error.

Fix the return code of unshared() so that we don't fail on that, though. Also, when building the RPM layer, use a proper cleanup trap instead of ignoring SIGINT since a failing make_install() can now terminate the script.

Fixes: #2667

Right now, if the podman image fails to build or rpm fails to
build/install, we happily continue and run the test-suite, only to
eventually fail with some cryptic error, such as:

    error: cannot find rpm

Not too helpful, indeed.  Instead, just fail the whole tree preparation
process if we encounter an error.

Fix the return code of unshared() so that we don't fail on that, though.
Also, when building the RPM layer, use a proper cleanup trap instead of
ignoring SIGINT since a failing make_install() can now terminate the
script.

Fixes: rpm-software-management#2667
@pmatilai pmatilai merged commit 302793a into rpm-software-management:master Nov 1, 2023
@dmnks dmnks added the test Testsuite-related label Nov 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
test Testsuite-related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fail test image build on cmake failure
2 participants