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

test: return proper exit code in case of script failure #6

Merged
merged 1 commit into from
Apr 24, 2024

Conversation

mcattamoredhat
Copy link
Owner

We have seen failed tests results that are reported by tmt as passed.

This is likely being caused by exit 0 command at the end of tmt/tests/test.sh script. Even though a test case fails the script will exit with code zero.

In order to circumvent this, testing-farm/tmt working group recommended to include command set -exuo pipefail

@mcattamoredhat mcattamoredhat merged commit aeace51 into main Apr 24, 2024
@mcattamoredhat mcattamoredhat deleted the test-fedora-workflow branch April 24, 2024 10:19
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.

1 participant