summaryrefslogtreecommitdiffstats
path: root/llvm/utils/update_llc_test_checks.py
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/utils/update_llc_test_checks.py')
-rwxr-xr-xllvm/utils/update_llc_test_checks.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/utils/update_llc_test_checks.py b/llvm/utils/update_llc_test_checks.py
index 5d2aac2509e..9dd25d386b1 100755
--- a/llvm/utils/update_llc_test_checks.py
+++ b/llvm/utils/update_llc_test_checks.py
@@ -10,6 +10,7 @@ a single test function.
from __future__ import print_function
import argparse
+import glob
import os # Used to advertise this file's name ("autogenerated_note").
import string
import subprocess
@@ -42,7 +43,8 @@ def main():
autogenerated_note = (ADVERT + 'utils/' + os.path.basename(__file__))
- for test in args.tests:
+ test_paths = [test for pattern in args.tests for test in glob.glob(pattern)]
+ for test in test_paths:
if args.verbose:
print('Scanning for RUN lines in test file: %s' % (test,), file=sys.stderr)
with open(test) as f:
OpenPOWER on IntegriCloud