[PATCH] D79169: lit googletest.py: Don't raise StopIteration to end generator function

Hans Wennborg via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 30 09:36:13 PDT 2020


This revision was automatically updated to reflect the committed changes.
Closed by commit rG88aad9b9f057: lit googletest.py: Don't raise StopIteration in generator (authored by hans).

Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D79169

Files:
  llvm/utils/lit/lit/formats/googletest.py


Index: llvm/utils/lit/lit/formats/googletest.py
===================================================================
--- llvm/utils/lit/lit/formats/googletest.py
+++ llvm/utils/lit/lit/formats/googletest.py
@@ -41,7 +41,7 @@
             litConfig.warning(
                 "unable to discover google-tests in %r: %s. Process output: %s"
                 % (path, sys.exc_info()[1], exc.output))
-            raise StopIteration
+            return
 
         nested_tests = []
         for ln in output.splitlines(False):  # Don't keep newlines.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D79169.261264.patch
Type: text/x-patch
Size: 546 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200430/febd94f7/attachment.bin>


More information about the llvm-commits mailing list