test: keep a skipped test out of the failed list #1892
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1899"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from R0Y00/Xbox2Windows. Originally posted by ChazY11 on 2026-11-24T20:30:53Z.
What
hardware_reports.markdown()names skipped and failed tests on the oneTestsline:No check asserted that line. Widening either list —
if status in ("FAIL", "SKIP")forfailed, or the reverse forskipped— leaveshardware_reports_check.pygreen, so a report could announce "failed: bvh_wave64" for a test the runnerskipped. Found while reviewing #1829 (which pins the README cell wording but not this summary line).
Change
One unittest case, using the fixture's default of
wave64="SKIP"withbvh="FAIL":Splitting on
failed:is what pins the separation: a merged list would put both names on one side and fail.Tested
Negative controls, each reverted:
The first is the gap I found by mutation; the second guards the mirror case.
Scope
One test file, one case. No production change —
tools/hardware_reports.pyis untouched.Notes
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-24T20:45:10Z.
Review: COMMENTED
Review of head
e8718f9f691325923759c72c99e31b0df6da3cd4(one file,tests/hardware_reports_check.py, +17 lines, test only, no product code touched).Verdict: no P1/P2 findings. The test is sound and fills a real gap. Nothing else in the suite asserts the
Tests:line produced byhardware_reports.markdown(checked with grep), so this is not a duplicate.Commands run locally (Linux, review venv):
git diff --check origin/main...HEAD: clean, exit 0python -B tests/hardware_reports_check.py:Ran 14 tests ... OKpython -B tests/bidi_controls_check.py: self-test passed, 1331 files, no bidirectional controlspython -B tests/docs_links_check.py: self-test passed, 18 Markdown files, 376 linksMutations on
tools/hardware_reports.py(each reverted withgit checkout -- ., tree clean afterwards):failedlist also acceptsSKIP(line 352): caught.'bvh_wave64' unexpectedly found in ' bvh_wave64, bvh_differential'.skippedlist takesFAILinstead ofSKIP(line 351): caught.'bvh_wave64' not found in '... skipped: bvh_differential, '.failed:renamed (line 410): caught, but only as a bareStopIterationerror fromnext(...)(see nit 2).Nits (not blocking):
tests/hardware_reports_check.pyaround line 190: the hunk adds three blank lines after the new test, two more than needed (PEP 8 E303).git diff --checkdoes not flag it. Trim to one blank line.next(t for t in ... if "failed:" in t)has no default, so if the label ever changes the failure is an opaqueStopIterationinstead of the report text.next(..., None)plus anassertIsNotNone(line, text)would print the report.AI-assisted; commands listed were executed locally.
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-24T20:50:04Z.
Review: COMMENTED
Review of head
e8718f9f691325923759c72c99e31b0df6da3cd4(tests/hardware_reports_check.py only, +17 lines, no product code).Verdict: no P1/P2 findings. Pure-Python fast path (only tests/**/*.py changed), no Windows run needed.
Commands run locally (Linux):
Mutations on tools/hardware_reports.py (each reverted with git checkout -- ., tree clean):
Nit, not blocking: three blank lines after the new test (PEP 8 E303), one is enough.
AI-assisted; commands listed were executed locally.