twister: Fix quarantine filtering simulations #87421
Merged
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.
Quarantine filter was not correctly identifying the simulator name. Now it uses the simulator name from the Platform object, ensuring that quarantined tests are properly excluded or verified.
Tested with:
Create
quarantine.yaml
file:Check if quarantine works for the default simulations (qemu):
./scripts/twister -T samples/hello_world -p mps2/an521/cpu0 -vv -ll debug -c --quarantine-list quarantine.yaml
logged:
DEBUG - mps2/an521/cpu0 samples/hello_world/sample.basic.helloworld FILTERED: Quarantine: qemu
Check if quarantine works with non-default simulator (armfvp):
./scripts/twister -T samples/hello_world -p mps2/an521/cpu0 -vv -ll debug -c --simulation armfvp --quarantine-list quarantine.yaml
logged:
DEBUG - mps2/an521/cpu0 samples/hello_world/sample.basic.helloworld FILTERED: Quarantine: armfvp
Run with other simulations:
./scripts/twister -T samples/hello_world -p qemu_x86 -p native_sim -vv -ll debug -c --quarantine-list quarantine.yaml
logged
Issue introduced by: #79174