diff options
author | Simon Pilgrim <llvm-dev@redking.me.uk> | 2019-09-27 10:04:16 +0000 |
---|---|---|
committer | Simon Pilgrim <llvm-dev@redking.me.uk> | 2019-09-27 10:04:16 +0000 |
commit | 34cccf01c5db287ba6a99cf8aad3f7a0d5dae7f2 (patch) | |
tree | 684a3ee12c094518b7d3e85c97388d3321e8117e /llvm | |
parent | 32a4b27aa3c906e62c532d2372fa5e7db1c0c452 (diff) | |
download | bcm5719-llvm-34cccf01c5db287ba6a99cf8aad3f7a0d5dae7f2.tar.gz bcm5719-llvm-34cccf01c5db287ba6a99cf8aad3f7a0d5dae7f2.zip |
[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
llvm-svn: 373062
Diffstat (limited to 'llvm')
-rwxr-xr-x | llvm/utils/update_test_checks.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/utils/update_test_checks.py b/llvm/utils/update_test_checks.py index fa8e1d45f1b..5e0d4bac22f 100755 --- a/llvm/utils/update_test_checks.py +++ b/llvm/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) |