summaryrefslogtreecommitdiffstats
path: root/llvm/utils/update_test_checks.py
diff options
context:
space:
mode:
authorFangrui Song <maskray@google.com>2019-05-12 04:55:09 +0000
committerFangrui Song <maskray@google.com>2019-05-12 04:55:09 +0000
commit91ab86fd29be1a2e0201cf214f8aaf3f24fafd8b (patch)
tree658b4e6453249a78fcd8032cc5981a93353633c6 /llvm/utils/update_test_checks.py
parentfda6bffd3bf2a9b0bd5ecad862132b05f75ecf4d (diff)
downloadbcm5719-llvm-91ab86fd29be1a2e0201cf214f8aaf3f24fafd8b.tar.gz
bcm5719-llvm-91ab86fd29be1a2e0201cf214f8aaf3f24fafd8b.zip
[utils] update_test_checks.py: allow opt-8, opt-9
Allow using Debian's opt-8, opt-9 with update_test_checks.py Patch by Shawn Landden! Differential Revision: https://reviews.llvm.org/D61148 llvm-svn: 360536
Diffstat (limited to 'llvm/utils/update_test_checks.py')
-rwxr-xr-xllvm/utils/update_test_checks.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/utils/update_test_checks.py b/llvm/utils/update_test_checks.py
index f108e8c74b1..de2900a4ab6 100755
--- a/llvm/utils/update_test_checks.py
+++ b/llvm/utils/update_test_checks.py
@@ -68,9 +68,10 @@ def main():
autogenerated_note = (ADVERT + 'utils/' + os.path.basename(__file__))
opt_basename = os.path.basename(args.opt_binary)
- if (opt_basename != "opt"):
+ if not re.match(r'^opt(-\d+)?$', opt_basename):
print('ERROR: Unexpected opt name: ' + opt_basename, file=sys.stderr)
sys.exit(1)
+ opt_basename = 'opt'
test_paths = [test for pattern in args.tests for test in glob.glob(pattern)]
for test in test_paths:
OpenPOWER on IntegriCloud