Skip to content

Commit 395997b

Browse files
committed
[lit] Fix default time out value
Fixes comparison between None and integer. Closes #1227 Signed-off-by: Shankar Easwaran <seaswara@qti.qualcomm.com>
1 parent 17f06bb commit 395997b

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

test/eld_test_formats.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def _execute_shell_script(self, test, litConfig):
106106
return lit.Test.Result(lit.Test.PASS, "")
107107
cmd = [shell, expanded_script_path]
108108
out, err, exitCode = lit.util.executeCommand(
109-
cmd, env=env, cwd=execdir, timeout=litConfig.maxIndividualTestTime)
109+
cmd, env=env, cwd=execdir, timeout=test.config.maxIndividualTestTime)
110110
output = out + err
111111
if exitCode != 0:
112112
return lit.Test.Result(lit.Test.FAIL, output)

test/lit.cfg

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ def which(cmdline):
4141
# name: The name of this test suite.
4242
config.name = 'eld'
4343

44+
# Default per-test timeout in seconds.
45+
config.maxIndividualTestTime = 120
46+
4447
# testFormat: The test format to use to interpret tests.
4548
#
4649
# For now we require '&&' between commands, until they get globally killed and

0 commit comments

Comments
 (0)