
This is the first commit in a series that will reformat all the python files in the LLVM repository. Reformatting is done with `black`. See more information here: https://discourse.llvm.org/t/rfc-document-and-standardize-python-code-style Reviewed By: jhenderson, JDevlieghere, MatzeB Differential Revision: https://reviews.llvm.org/D150545
12 lines
397 B
INI
12 lines
397 B
INI
import lit.formats
|
|
|
|
config.name = "googletest-timeout"
|
|
config.test_format = lit.formats.GoogleTest("DummySubDir", "Test")
|
|
|
|
configSetTimeout = lit_config.params.get("set_timeout", "0")
|
|
config.environment["GTEST_FILTER"] = lit_config.params.get("gtest_filter")
|
|
|
|
if configSetTimeout == "1":
|
|
# Try setting the max individual test time in the configuration
|
|
lit_config.maxIndividualTestTime = 1
|