Repository navigation
Conversation
|
1 task done
Contributor
|
Thanks for the fix. It turned out |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Start with a description of this PR. Then edit the list below to the items that make sense for your PR scope, and check off the boxes as you go!
Contributor Checklist
dev(fix or chore) ornext(feature, new API, breaking change), see Which branch to targetoptionals
CHANGELOG.mdChange and verification
rerun_failed_tests.pyjoined the failed test names into one string and ran it throughsubprocess.run(..., shell=True), so a test name containing shell characters (a parametrized id, a quote,;or$(...)) was interpreted by the shell. The names are now passed to pytest as an argument list and no shell is used. Two unit tests pin this: one checks the command is a list withoutshell=True, one checks thatparse_test_resultsreturns the failed names from a JUnit file.Closes #4229.
Verification
python -m pytest -q tests/unit/test_rerun_failed_tests.py -p no:cacheprovider: fails with only the new test applied and passes with the fix; both runs were executed automatically in an isolated CI environment.