[lit] Allow disabling an entire gtest suite, as is done in tsan
authorReid Kleckner <reid@kleckner.net>
Tue, 7 Apr 2015 18:14:10 +0000 (18:14 +0000)
committerReid Kleckner <reid@kleckner.net>
Tue, 7 Apr 2015 18:14:10 +0000 (18:14 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234336 91177308-0d34-0410-b5e6-96231b3b80d8

utils/lit/lit/formats/googletest.py

index a1ecced52a8e5863019fc536357a4a140571e9ed..3ce57917113aa9bd9dd03d229f5bf320dbf4e3fd 100644 (file)
@@ -53,7 +53,8 @@ class GoogleTest(TestFormat):
             ln = ln[index*2:]
             if ln.endswith('.'):
                 nested_tests.append(ln)
-            elif ln.startswith('DISABLED_'):
+            elif any([name.startswith('DISABLED_')
+                      for name in nested_tests + [ln]]):
                 # Gtest will internally skip these tests. No need to launch a
                 # child process for it.
                 continue