mirror of
https://github.com/gosticks/RIOT.git
synced 2025-10-16 12:05:37 +00:00
Merge pull request #11853 from sanjuprakashk/testrunner-timeout
dist/pythonlibs/testrunner: dynamic changing of test timeout
This commit is contained in:
commit
f932999df4
7
dist/pythonlibs/testrunner/__init__.py
vendored
7
dist/pythonlibs/testrunner/__init__.py
vendored
@ -15,8 +15,13 @@ import pexpect
|
||||
from .spawn import find_exc_origin, setup_child, teardown_child
|
||||
from .unittest import PexpectTestCase # noqa, F401 expose to users
|
||||
|
||||
# Timeout for tests can be changed by setting RIOT_TEST_TIMEOUT to the desired
|
||||
# value in the environment variables
|
||||
# default value (10)
|
||||
TIMEOUT = int(os.environ.get('RIOT_TEST_TIMEOUT') or 10)
|
||||
|
||||
def run(testfunc, timeout=10, echo=True, traceback=False):
|
||||
|
||||
def run(testfunc, timeout=TIMEOUT, echo=True, traceback=False):
|
||||
child = setup_child(timeout, env=os.environ,
|
||||
logfile=sys.stdout if echo else None)
|
||||
try:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user