[PATCH] D61148: [utils] allow opt-8, opt-9 distro

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat May 11 21:53:34 PDT 2019


This revision was automatically updated to reflect the committed changes.
Closed by commit rL360536: [utils] update_test_checks.py: allow opt-8, opt-9 (authored by MaskRay, committed by ).

Changed prior to commit:
  https://reviews.llvm.org/D61148?vs=196722&id=199162#toc

Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D61148/new/

https://reviews.llvm.org/D61148

Files:
  llvm/trunk/utils/update_test_checks.py


Index: llvm/trunk/utils/update_test_checks.py
===================================================================
--- llvm/trunk/utils/update_test_checks.py
+++ llvm/trunk/utils/update_test_checks.py
@@ -68,9 +68,10 @@
   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:


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D61148.199162.patch
Type: text/x-patch
Size: 653 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190512/9ef6d1ca/attachment.bin>


More information about the llvm-commits mailing list