[PATCH rtems-tools 1/3] tester/exe: Adjust timeouts by the step size

chrisj at rtems.org chrisj at rtems.org
Tue Sep 21 07:42:01 UTC 2021


From: Chris Johns <chrisj at rtems.org>

---
 tester/rt/exe.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tester/rt/exe.py b/tester/rt/exe.py
index 13b9686..626899e 100644
--- a/tester/rt/exe.py
+++ b/tester/rt/exe.py
@@ -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
-- 
2.24.1



More information about the devel mailing list