Skip to content

Commit

Permalink
set timeout in cfg
Browse files Browse the repository at this point in the history
  • Loading branch information
superlopuh committed Dec 7, 2024
1 parent 5685153 commit 2058668
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/filecheck/lit.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,17 @@ config.test_source_root = os.path.dirname(__file__)
config.name = "asl-xdsl"
config.test_format = lit.formats.ShTest()
config.suffixes = ['.asl', '.mlir']

# checking if maxIndividualTestTime is available on the platform and sets
# it to 20sec if so, declares lit-max-individual-test-time feature for
# further checking by tests.
supported, errormsg = lit_config.maxIndividualTestTimeIsSupported
if supported:
config.available_features.add("lit-max-individual-test-time")
lit_config.maxIndividualTestTime = 20
else:
lit_config.warning(
"Setting a timeout per test not supported. "
+ errormsg
+ " Some tests will be skipped."
)

0 comments on commit 2058668

Please sign in to comment.