[PATCH] D61148: [utils] allow opt-8, opt-9 distro
Shawn Landden via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 25 13:53:34 PDT 2019
shawnl created this revision.
shawnl added a reviewer: sanjay.nm.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
allow using Debian's opt-8, opt-9 with update_test_checks.py
Repository:
rL LLVM
https://reviews.llvm.org/D61148
Files:
utils/update_test_checks.py
Index: utils/update_test_checks.py
===================================================================
--- utils/update_test_checks.py
+++ 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 (opt_basename != "opt" and opt_basename[0:4] != "opt-"):
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.196722.patch
Type: text/x-patch
Size: 632 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190425/1b021f89/attachment.bin>
More information about the llvm-commits
mailing list