forked from espressif/esp-idf
ttfw: full_stdout should not return data after pattern in expect
This commit is contained in:
@@ -596,6 +596,7 @@ class BaseDUT(object):
|
||||
while True:
|
||||
ret, index = method(data, pattern)
|
||||
if ret is not None:
|
||||
stdout = data[:index]
|
||||
self.data_cache.flush(index)
|
||||
break
|
||||
time_remaining = start_time + timeout - time.time()
|
||||
@@ -603,7 +604,6 @@ class BaseDUT(object):
|
||||
break
|
||||
# wait for new data from cache
|
||||
data = self.data_cache.get_data(time_remaining)
|
||||
stdout = data
|
||||
|
||||
if ret is None:
|
||||
pattern = _pattern_to_string(pattern)
|
||||
|
Reference in New Issue
Block a user