diff options
author | tb <> | 2020-08-17 08:01:53 +0000 |
---|---|---|
committer | tb <> | 2020-08-17 08:01:53 +0000 |
commit | 5a05349a81297a88ab48775872a42eb277d840a2 (patch) | |
tree | 0b66919d3eb75ceae0ca15cef6aeb32aa22a270c /src/regress/lib | |
parent | d6c38334c76a7042ac410d9c080bd2a638063cef (diff) | |
download | openbsd-5a05349a81297a88ab48775872a42eb277d840a2.tar.gz openbsd-5a05349a81297a88ab48775872a42eb277d840a2.tar.bz2 openbsd-5a05349a81297a88ab48775872a42eb277d840a2.zip |
Avoid test failures due to outdated packages
Indicate missing test scripts prominently in the result but do not
count them as an error.
Diffstat (limited to 'src/regress/lib')
-rw-r--r-- | src/regress/lib/libssl/tlsfuzzer/tlsfuzzer.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/regress/lib/libssl/tlsfuzzer/tlsfuzzer.py b/src/regress/lib/libssl/tlsfuzzer/tlsfuzzer.py index bb8aaa0bd2..95fa0a95ea 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.14 2020/08/15 16:17:55 tb Exp $ | 1 | # $OpenBSD: tlsfuzzer.py,v 1.15 2020/08/17 08:01:53 tb Exp $ |
2 | # | 2 | # |
3 | # Copyright (c) 2020 Theo Buehler <tb@openbsd.org> | 3 | # Copyright (c) 2020 Theo Buehler <tb@openbsd.org> |
4 | # | 4 | # |
@@ -514,6 +514,11 @@ class TestRunner: | |||
514 | else: | 514 | else: |
515 | print(f"{script[:68]:<72}", end=" ", flush=True) | 515 | print(f"{script[:68]:<72}", end=" ", flush=True) |
516 | start = timer() | 516 | start = timer() |
517 | script = os.path.join(self.scriptdir, script) | ||
518 | if not os.path.exists(script): | ||
519 | # likely an outdated py3-tlsfuzzer package | ||
520 | print("MISSING") | ||
521 | return | ||
517 | test = subprocess.run( | 522 | test = subprocess.run( |
518 | ["python3", os.path.join(self.scriptdir, script)] + args, | 523 | ["python3", os.path.join(self.scriptdir, script)] + args, |
519 | capture_output=not self.verbose, | 524 | capture_output=not self.verbose, |