[PATCH] D64572: [UpdateTestChecks] Emit warning when invalid test paths

Dávid Bolvanský via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 11 13:14:32 PDT 2019


This revision was automatically updated to reflect the committed changes.
Closed by commit rL365818: [UpdateTestChecks] Emit warning when invalid test paths (authored by xbolva00, committed by ).

Changed prior to commit:
  https://reviews.llvm.org/D64572?vs=209250&id=209310#toc

Repository:
  rL LLVM

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

https://reviews.llvm.org/D64572

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
@@ -73,7 +73,13 @@
     sys.exit(1)
   opt_basename = 'opt'
 
-  test_paths = [test for pattern in args.tests for test in glob.glob(pattern)]
+  test_paths = []
+  for test in args.tests:
+    if not glob.glob(test):
+      print('WARNING: Test file \'%s\' was not found. Ignoring it.' % (test,), file=sys.stderr)
+      continue
+    test_paths.append(test)
+
   for test in test_paths:
     if args.verbose:
       print('Scanning for RUN lines in test file: %s' % (test,), file=sys.stderr)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D64572.209310.patch
Type: text/x-patch
Size: 693 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190711/6dc5af6c/attachment.bin>


More information about the llvm-commits mailing list