1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

tools/testrunner: wait 3s after 'make term'

This commit is contained in:
Hauke Petersen 2017-10-24 14:55:15 +02:00
parent bf70d8e830
commit 1928d1c0e9

View File

@ -10,10 +10,15 @@
import os, signal, sys, subprocess
from pexpect import spawnu, TIMEOUT, EOF
from traceback import print_tb
import time
def run(testfunc, timeout=10, echo=True, traceback=False):
env = os.environ.copy()
child = spawnu("make term", env=env, timeout=timeout)
# on many platforms, the termprog needs a short while to be ready...
time.sleep(3)
if echo:
child.logfile = sys.stdout