From 285ec33f6929ae7b8dacaace2099b310d12128aa Mon Sep 17 00:00:00 2001 From: Reid Kleckner Date: Tue, 7 Apr 2015 18:14:10 +0000 Subject: [PATCH] [lit] Allow disabling an entire gtest suite, as is done in tsan git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234336 91177308-0d34-0410-b5e6-96231b3b80d8 --- utils/lit/lit/formats/googletest.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/utils/lit/lit/formats/googletest.py b/utils/lit/lit/formats/googletest.py index a1ecced52a8..3ce57917113 100644 --- a/utils/lit/lit/formats/googletest.py +++ b/utils/lit/lit/formats/googletest.py @@ -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 -- 2.34.1