1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-29 05:21:37 +03:00

fix minor issues in test runner scripts on device (#4542)

* tests/device/Makefile: use bourne shell compatible "." instead ot "source" (ubuntu's dash does not understand it)

* tests/device: make BEGINTIMEOUT a new error return value instead of a test-process-breaking exception
This commit is contained in:
david gauchard
2018-03-21 17:07:23 +01:00
committed by GitHub
parent 6580bf3477
commit 2013af1b19
2 changed files with 4 additions and 3 deletions

View File

@ -32,6 +32,7 @@ class BSTestRunner(object):
FAIL = 1
TIMEOUT = 2
CRASH = 3
BEGINTIMEOUT = 4
def __init__(self, spawn_obj, name, mocks):
self.sp = spawn_obj
@ -116,7 +117,7 @@ class BSTestRunner(object):
time.sleep(0.1)
timeout -= 0.1
if timeout <= 0:
raise 'test begin timeout'
return BSTestRunner.BEGINTIMEOUT
while timeout > 0:
res = self.sp.expect([r'>>>>>bs_test_check_failure line=(\d+)',
r'>>>>>bs_test_end line=(\d+) result=(\d+) checks=(\d+) failed_checks=(\d+)',