diff options
| author | SkippySteve <69158610+SkippySteve@users.noreply.github.com> | 2026-11-23 16:58:21 -0500 |
|---|---|---|
| committer | SkippySteve <69158610+SkippySteve@users.noreply.github.com> | 2026-11-23 16:58:21 -0500 |
| commit | 75e158bfc3ff6ccf1f25415cfc264aba2ec026b7 (patch) | |
| tree | 7e949a5737d7757195f4d9c5b70c92546c0b9fb7 /scripts | |
| parent | 5d74c272363f2703265d44e6aaab1a1df8ddfaf3 (diff) | |
run_wine_tests: name missing required tests in the summary table
A required test the Windows build never listed fails the job, but the
--summary table only iterated the results, so the step summary showed no
row explaining the failure. Add one 'missing' row per such test, once
even when --require repeats it.
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/run_wine_tests.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/run_wine_tests.py b/scripts/run_wine_tests.py index 4a6adb8c5..2dd1cf736 100644 --- a/scripts/run_wine_tests.py +++ b/scripts/run_wine_tests.py | |||
| @@ -368,7 +368,7 @@ def main() -> int: | |||
| 368 | for line in detail.rstrip().splitlines()[-40:]: | 368 | for line in detail.rstrip().splitlines()[-40:]: |
| 369 | print(f" {line}") | 369 | print(f" {line}") |
| 370 | 370 | ||
| 371 | missing = [n for n in args.require if n not in results] | 371 | missing = list(dict.fromkeys(n for n in args.require if n not in results)) |
| 372 | failed_required = [n for n in args.require if results.get(n) != "pass"] | 372 | failed_required = [n for n in args.require if results.get(n) != "pass"] |
| 373 | counts = {s: sum(1 for v in results.values() if v == s) for s in ("pass", "fail", "skip")} | 373 | counts = {s: sum(1 for v in results.values() if v == s) for s in ("pass", "fail", "skip")} |
| 374 | print(f"\n{counts['pass']} passed, {counts['fail']} failed, {counts['skip']} skipped under Wine " | 374 | print(f"\n{counts['pass']} passed, {counts['fail']} failed, {counts['skip']} skipped under Wine " |
| @@ -387,6 +387,9 @@ def main() -> int: | |||
| 387 | f.write("| Test | Result | Required |\n|---|---|---|\n") | 387 | f.write("| Test | Result | Required |\n|---|---|---|\n") |
| 388 | for name, status in results.items(): | 388 | for name, status in results.items(): |
| 389 | f.write(f"| `{name}` | {status} | {'yes' if name in args.require else ''} |\n") | 389 | f.write(f"| `{name}` | {status} | {'yes' if name in args.require else ''} |\n") |
| 390 | for name in missing: | ||
| 391 | # The job fails on these, so the table must name them, not only the log. | ||
| 392 | f.write(f"| `{name}` | missing: not listed by the Windows build | yes |\n") | ||
| 390 | f.write("\n") | 393 | f.write("\n") |
| 391 | except OSError as e: | 394 | except OSError as e: |
| 392 | print(f"ERROR: cannot write the summary {args.summary}: {e.strerror or e}", file=sys.stderr) | 395 | print(f"ERROR: cannot write the summary {args.summary}: {e.strerror or e}", file=sys.stderr) |