Skip to content

Commit 670b4c7

Browse files
authored
[test] Add EMTEST_TIMEOUT environment variable (#26669)
This is useful when debugging tests that are timing out without having to wait the full default of 5 minutes to get the failure. For example I've been debugging a timeout recently using: ``` EMTEST_TIMEOUT=5 ./test/runner posixtest.test_pthread_join_4_1 ``` This waits for 5 seconds rather than 5 minutes.
1 parent 4c4c5d4 commit 670b4c7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/jsrun.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
from tools import utils
1616

1717
WORKING_ENGINES = {} # Holds all configured engines and whether they work: maps path -> True/False
18-
DEFAULT_TIMEOUT = 5 * 60
18+
DEFAULT_TIMEOUT = int(os.environ.get('EMTEST_TIMEOUT', str(5 * 60)))
1919

2020

2121
def make_command(filename, engine, args=None):

0 commit comments

Comments
 (0)