diff options
Diffstat (limited to 'llvm/utils/update_test_checks.py')
-rwxr-xr-x | llvm/utils/update_test_checks.py | 3 |
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: |