diff options
| author | quackottu <224479491+quackottu@users.noreply.github.com> | 2026-11-22 12:37:25 +0530 |
|---|---|---|
| committer | quackottu <224479491+quackottu@users.noreply.github.com> | 2026-11-22 12:37:25 +0530 |
| commit | 9df1a6cee16b83ad27e607fcbb98a683ec50ea66 (patch) | |
| tree | ba4a0f19b37c0502901bfe693f2330c52dc3615e /tools/shader_diff.py | |
| parent | c63773d51235d72250d48699f29830ac9ddafd60 (diff) | |
shader_diff: a harness error exits 2, as documented, not 1 like a mismatch
run_suite sets first_failure for a harness error too, and main returned 1
whenever first_failure was set, so the exit-2 branch was unreachable and a
broken harness read as a translator mismatch.
Diffstat (limited to 'tools/shader_diff.py')
| -rw-r--r-- | tools/shader_diff.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tools/shader_diff.py b/tools/shader_diff.py index ed31ff8b8..401530ad8 100644 --- a/tools/shader_diff.py +++ b/tools/shader_diff.py | |||
| @@ -332,11 +332,10 @@ def main(argv=None): | |||
| 332 | for reason, n in sorted(counts["skip"].items()): | 332 | for reason, n in sorted(counts["skip"].items()): |
| 333 | print(f" skip x{n}: {reason}") | 333 | print(f" skip x{n}: {reason}") |
| 334 | if first_failure is not None: | 334 | if first_failure is not None: |
| 335 | print("FIRST MISMATCH:\n" + first_failure) | 335 | print("FIRST FAILURE:\n" + first_failure) |
| 336 | return 1 | ||
| 337 | if counts["harness-error"]: | 336 | if counts["harness-error"]: |
| 338 | return 2 | 337 | return 2 |
| 339 | return 0 | 338 | return 1 if counts["mismatch"] else 0 |
| 340 | 339 | ||
| 341 | 340 | ||
| 342 | if __name__ == "__main__": | 341 | if __name__ == "__main__": |