[PATCH] D35857: [lit] Fix UnboundLocalError for invalid shtest redirects

Michał Górny via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 25 15:40:07 PDT 2017


This revision was automatically updated to reflect the committed changes.
Closed by commit rL309044: [lit] Fix UnboundLocalError for invalid shtest redirects (authored by mgorny).

Changed prior to commit:
  https://reviews.llvm.org/D35857?vs=108160&id=108172#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D35857

Files:
  llvm/trunk/utils/lit/lit/TestRunner.py


Index: llvm/trunk/utils/lit/lit/TestRunner.py
===================================================================
--- llvm/trunk/utils/lit/lit/TestRunner.py
+++ llvm/trunk/utils/lit/lit/TestRunner.py
@@ -313,7 +313,7 @@
         elif op == ('<',):
             redirects[0] = [filename, 'r', None]
         else:
-            raise InternalShellError(cmd, "Unsupported redirect: %r" % (r,))
+            raise InternalShellError(cmd, "Unsupported redirect: %r" % ((op, filename),))
 
     # Open file descriptors in a second pass.
     std_fds = [None, None, None]


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D35857.108172.patch
Type: text/x-patch
Size: 565 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170725/b9ea1c47/attachment.bin>


More information about the llvm-commits mailing list