diff options
| author | tedin7 <tommasoderosa94@gmail.com> | 2026-11-23 02:07:06 +0100 |
|---|---|---|
| committer | tedin7 <tommasoderosa94@gmail.com> | 2026-11-23 02:07:06 +0100 |
| commit | 91a89baac64b7e41798c4b2dca788020a5b7c8e6 (patch) | |
| tree | e29eac0ab86f38e7bcd36fa7a2a5f1288725d0dd /tools/sdwa_diff.py | |
| parent | 03b09a086592a197db64d91655c6e65c30764d96 (diff) | |
diff fuzzers: exit 2 when every program was skipped, not 0 (vint, pk16, salu, sdwa, sad)
Diffstat (limited to 'tools/sdwa_diff.py')
| -rw-r--r-- | tools/sdwa_diff.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/sdwa_diff.py b/tools/sdwa_diff.py index 22d9b89c3..64f846783 100644 --- a/tools/sdwa_diff.py +++ b/tools/sdwa_diff.py | |||
| @@ -767,7 +767,12 @@ def main(argv=None): | |||
| 767 | finally: | 767 | finally: |
| 768 | if oracle: | 768 | if oracle: |
| 769 | oracle.close() | 769 | oracle.close() |
| 770 | return 1 if failures else 0 | 770 | if failures: |
| 771 | return 1 | ||
| 772 | if not counts["pass"]: # nothing was compared: every program was skipped | ||
| 773 | print("no program ran: every one was skipped") | ||
| 774 | return 2 | ||
| 775 | return 0 | ||
| 771 | 776 | ||
| 772 | 777 | ||
| 773 | if __name__ == "__main__": | 778 | if __name__ == "__main__": |