Skip to content

Commit 55b68e5

Browse files
sbryngelsonclaude
andcommitted
Fix --only filter silently matching zero tests with multiple UUIDs
The subset check required ALL passed UUIDs to match a single test case's trace, which is impossible since each case has one UUID. With 2+ failed tests, the CI retry selected 0 tests and exited 0, silently masking real failures. Changed to intersection so each case is kept if ANY of the passed UUIDs matches. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 1aebfc5 commit 55b68e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

toolchain/mfc/test/test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def __filter(cases_) -> typing.List[TestCase]:
7171

7272
checkCase = case.trace.split(" -> ")
7373
checkCase.append(case.get_uuid())
74-
if not set(ARG("only")).issubset(set(checkCase)):
74+
if not set(ARG("only")).intersection(set(checkCase)):
7575
cases.remove(case)
7676
skipped_cases.append(case)
7777

0 commit comments

Comments
 (0)