mirror of
https://git.rtems.org/rtems-tools/
synced 2025-05-13 14:29:14 +08:00
tester/exe: Adjust timeouts by the step size
This commit is contained in:
parent
dac7ef233a
commit
cfd5aa41e8
@ -116,12 +116,12 @@ class exe(object):
|
||||
def _monitor(self, timeout):
|
||||
output_length = self.output_length
|
||||
step = 0.25
|
||||
period = timeout[0]
|
||||
seconds = timeout[1]
|
||||
period = timeout[0] * step
|
||||
seconds = timeout[1] * step
|
||||
while self.process and period > 0 and seconds > 0:
|
||||
current_length = self.output_length
|
||||
if output_length != current_length:
|
||||
period = timeout[0]
|
||||
period = timeout[0] * step
|
||||
output_length = current_length
|
||||
if seconds < step:
|
||||
seconds = 0
|
||||
|
Loading…
x
Reference in New Issue
Block a user