From: Reid Kleckner Date: Tue, 7 Apr 2015 18:14:10 +0000 (+0000) Subject: [lit] Allow disabling an entire gtest suite, as is done in tsan X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=285ec33f6929ae7b8dacaace2099b310d12128aa;p=oota-llvm.git [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 --- 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