diff options
| -rw-r--r-- | src/regress/lib/libssl/tlsfuzzer/tlsfuzzer.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/regress/lib/libssl/tlsfuzzer/tlsfuzzer.py b/src/regress/lib/libssl/tlsfuzzer/tlsfuzzer.py index d7afd5f4a7..dd77fe4796 100644 --- a/src/regress/lib/libssl/tlsfuzzer/tlsfuzzer.py +++ b/src/regress/lib/libssl/tlsfuzzer/tlsfuzzer.py | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | # $OpenBSD: tlsfuzzer.py,v 1.59 2026/07/26 12:53:11 tb Exp $ | 1 | # $OpenBSD: tlsfuzzer.py,v 1.60 2026/07/26 13:05:49 tb Exp $ |
| 2 | # | 2 | # |
| 3 | # Copyright (c) 2020 Theo Buehler <tb@openbsd.org> | 3 | # Copyright (c) 2020 Theo Buehler <tb@openbsd.org> |
| 4 | # | 4 | # |
| @@ -822,11 +822,11 @@ def list_or_missing(missing=True): | |||
| 822 | missing = scripts - set(tests) | 822 | missing = scripts - set(tests) |
| 823 | if missing: | 823 | if missing: |
| 824 | print('\n'.join(sorted(missing))) | 824 | print('\n'.join(sorted(missing))) |
| 825 | exit(0) | 825 | sys.exit(0) |
| 826 | 826 | ||
| 827 | tests.sort() | 827 | tests.sort() |
| 828 | print('\n'.join(tests)) | 828 | print('\n'.join(tests)) |
| 829 | exit(0) | 829 | sys.exit(0) |
| 830 | 830 | ||
| 831 | def usage(): | 831 | def usage(): |
| 832 | print("Usage: python3 tlsfuzzer.py [-flmnstv] [-p port] [script [test...]]") | 832 | print("Usage: python3 tlsfuzzer.py [-flmnstv] [-p port] [script [test...]]") |
| @@ -839,7 +839,7 @@ def usage(): | |||
| 839 | print(" -s run slow tests") | 839 | print(" -s run slow tests") |
| 840 | print(" -t show timing stats at end") | 840 | print(" -t show timing stats at end") |
| 841 | print(" -v verbose output") | 841 | print(" -v verbose output") |
| 842 | exit(0) | 842 | sys.exit(0) |
| 843 | 843 | ||
| 844 | def main(): | 844 | def main(): |
| 845 | failing = False | 845 | failing = False |
| @@ -880,13 +880,13 @@ def main(): | |||
| 880 | 880 | ||
| 881 | if not os.path.exists(tlsfuzzer_scriptdir): | 881 | if not os.path.exists(tlsfuzzer_scriptdir): |
| 882 | print("package py3-tlsfuzzer is required for this regress") | 882 | print("package py3-tlsfuzzer is required for this regress") |
| 883 | exit(1) | 883 | sys.exit(1) |
| 884 | 884 | ||
| 885 | if list and failing: | 885 | if list and failing: |
| 886 | failing = [test.name for group in failing_groups for test in group] | 886 | failing = [test.name for group in failing_groups for test in group] |
| 887 | failing.sort() | 887 | failing.sort() |
| 888 | print('\n'.join(failing)) | 888 | print('\n'.join(failing)) |
| 889 | exit(0) | 889 | sys.exit(0) |
| 890 | 890 | ||
| 891 | if list or missing: | 891 | if list or missing: |
| 892 | list_or_missing(missing) | 892 | list_or_missing(missing) |
| @@ -905,7 +905,7 @@ def main(): | |||
| 905 | tests.verbose = True | 905 | tests.verbose = True |
| 906 | tests.add("test from command line", [Test(script, testargs + args[1:])]) | 906 | tests.add("test from command line", [Test(script, testargs + args[1:])]) |
| 907 | 907 | ||
| 908 | exit(not tests.run()) | 908 | sys.exit(not tests.run()) |
| 909 | 909 | ||
| 910 | if failing: | 910 | if failing: |
| 911 | if tls_server.has_tls1_3: | 911 | if tls_server.has_tls1_3: |
| @@ -930,7 +930,7 @@ def main(): | |||
| 930 | 930 | ||
| 931 | if not success: | 931 | if not success: |
| 932 | print("FAILED") | 932 | print("FAILED") |
| 933 | exit(1) | 933 | sys.exit(1) |
| 934 | 934 | ||
| 935 | if __name__ == "__main__": | 935 | if __name__ == "__main__": |
| 936 | main() | 936 | main() |
