From: Simon Pilgrim Date: Fri, 27 Sep 2019 10:04:16 +0000 (+0000) Subject: [UpdateTestChecks] Fix wildcard support on DOS prompts X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c669590457646c6a6a8370fdf1128226467d3bfc;p=llvm [UpdateTestChecks] Fix wildcard support on DOS prompts D64572 / rL365818 changed the way that the file paths were collected, which meant we lost the file pattern expansion necessary when working with DOS command prompt git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@373062 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/utils/update_test_checks.py b/utils/update_test_checks.py index fa8e1d45f1b..5e0d4bac22f 100755 --- a/utils/update_test_checks.py +++ b/utils/update_test_checks.py @@ -76,13 +76,13 @@ def main(): sys.exit(1) opt_basename = 'opt' - test_paths = [] for test in args.tests: if not glob.glob(test): - common.warn("Test file '%s' was not found. Ignoring it." % (test,)) + common.warn("Test file pattern '%s' was not found. Ignoring it." % (test,)) continue - test_paths.append(test) + # On Windows we must expand the patterns ourselves. + 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: ' + test, file=sys.stderr)