[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
This commit is contained in:
Reid Kleckner 2015-04-07 18:14:10 +00:00
parent 47a6d12ba7
commit 285ec33f69

View File

@ -53,7 +53,8 @@ class GoogleTest(TestFormat):
ln = ln[index*2:] ln = ln[index*2:]
if ln.endswith('.'): if ln.endswith('.'):
nested_tests.append(ln) 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 # Gtest will internally skip these tests. No need to launch a
# child process for it. # child process for it.
continue continue