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

Chris Johns chrisj at rtems.org
Mon Dec 18 05:30:15 UTC 2023


Module:    rtems-tools
Branch:    master
Commit:    384acf1bcb06e7e7b794395f4ebca7254acc59fb
Changeset: http://git.rtems.org/rtems-tools/commit/?id=384acf1bcb06e7e7b794395f4ebca7254acc59fb

Author:    Chris Johns <chrisj at rtems.org>
Date:      Thu Dec 14 17:07:04 2023 +1100

tester/console: Fix restart regx check

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')



More information about the vc mailing list