[llvm] r360536 - [utils] update_test_checks.py: allow opt-8, opt-9
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Sat May 11 21:55:09 PDT 2019
Author: maskray
Date: Sat May 11 21:55:09 2019
New Revision: 360536
URL: http://llvm.org/viewvc/llvm-project?rev=360536&view=rev
Log:
[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
Modified:
llvm/trunk/utils/update_test_checks.py
Modified: llvm/trunk/utils/update_test_checks.py
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/update_test_checks.py?rev=360536&r1=360535&r2=360536&view=diff
==============================================================================
--- llvm/trunk/utils/update_test_checks.py (original)
+++ llvm/trunk/utils/update_test_checks.py Sat May 11 21:55:09 2019
@@ -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:
More information about the llvm-commits
mailing list