From 1928d1c0e96ac12f46f567bc1cb7dd9a60bfb8e1 Mon Sep 17 00:00:00 2001 From: Hauke Petersen Date: Tue, 24 Oct 2017 14:55:15 +0200 Subject: [PATCH] tools/testrunner: wait 3s after 'make term' --- dist/tools/testrunner/testrunner.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dist/tools/testrunner/testrunner.py b/dist/tools/testrunner/testrunner.py index f36da3bbea..5b8e1f2ad6 100755 --- a/dist/tools/testrunner/testrunner.py +++ b/dist/tools/testrunner/testrunner.py @@ -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