Skip to content

Exit with error from test-wheel.bash if a background task failed.#8

Merged
josephbirkner merged 4 commits intomainfrom
bugfix/exit-with-error-from-trap
Aug 10, 2023
Merged

Exit with error from test-wheel.bash if a background task failed.#8
josephbirkner merged 4 commits intomainfrom
bugfix/exit-with-error-from-trap

Conversation

@l-laura
Copy link
Contributor

@l-laura l-laura commented Aug 10, 2023

Background tasks were killed in the trap section without checking their exit codes, so any errors were ignored.

This PR was tested with mapget's test-cli-datasource-exe test: it now fails if the script specified in the background task does not exist.

@l-laura l-laura requested a review from josephbirkner August 10, 2023 13:40
@josephbirkner
Copy link
Collaborator

Nice 💯 Maybe let's also add set -e remove the exit 0 at the end?

@josephbirkner
Copy link
Collaborator

Tested by ensuring that both background and foreground task failures cascade to a test failure.

@josephbirkner josephbirkner merged commit e28ac53 into main Aug 10, 2023
@fklebert fklebert deleted the bugfix/exit-with-error-from-trap branch July 9, 2025 10:07
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