Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit af3b17c

Browse files
me-no-devigrr
authored andcommittedJul 4, 2016
add more begin timeout for networked sketches and actually fail if begin is not received (esp8266#2223)
1 parent 39212ba commit af3b17c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed
 

‎tests/device/libraries/BSTest/runner.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,18 @@ def __init__(self, spawn_obj, name, mocks):
4242

4343
def get_test_list(self):
4444
self.sp.sendline('-1')
45-
timeout = 10
45+
self.tests = []
46+
timeout = 100
4647
while timeout > 0:
4748
res = self.sp.expect(['>>>>>bs_test_menu_begin', EOF, TIMEOUT])
4849
if res == 0:
4950
break
5051
timeout-=1
5152
time.sleep(0.1)
53+
if timeout <= 0:
54+
debug_print('begin timeout')
55+
return
5256
debug_print('got begin')
53-
self.tests = []
5457
while True:
5558
res = self.sp.expect(['>>>>>bs_test_item id\=(\d+) name\="([^\"]*?)" desc="([^"]*?)"',
5659
'>>>>>bs_test_menu_end',

0 commit comments

Comments
 (0)
Please sign in to comment.