[rtems-tools PATCH] tester/console: Fix restart regx check

chrisj at rtems.org chrisj at rtems.org
Thu Dec 14 06:09:54 UTC 2023


From: Chris Johns <chrisj at rtems.org>

The fix to the TFTP timeout has a simple bug.

Updates #4959
---
 tester/rt/config.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tester/rt/config.py b/tester/rt/config.py
index 139e1fa..2361bc9 100644
--- a/tester/rt/config.py
+++ b/tester/rt/config.py
@@ -425,7 +425,7 @@ class file(config.file):
                 self.defined('target_reset_on_timeout'):
                 reset_target = True
             restart = \
-                (self.target_start_regx is not None and self.target_start_regx is not None)
+                (self.target_start_regx is not None and self.target_start_regx.match(text))
             if restart:
                 if self.test_started:
                     self._capture_console('target start detected')
-- 
2.37.1



More information about the devel mailing list