[PATCH] tester: Use prefix for rtems_tools by default

Sebastian Huber sebastian.huber at embedded-brains.de
Wed Feb 12 06:27:51 UTC 2020


Commit 72c684eff2cd932b4948e21902680a93473340c3 removed the default
value of rtems_tools.  If the --rtems--tools option was omitted the
rtems-test command printed lots of

	error: run.cfg:61: macro '%{rtems_tools}' not found

error messages.
---
 tester/rt/test.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tester/rt/test.py b/tester/rt/test.py
index 6b45b78..16ac352 100644
--- a/tester/rt/test.py
+++ b/tester/rt/test.py
@@ -423,6 +423,8 @@ def run(args, command_path = None):
             if len(rtems_tools) != 2:
                 raise error.general('invalid RTEMS tools option')
             rtems_tools = rtems_tools[1]
+        else:
+            rtems_tools = '%{_prefix}'
         bsp = opts.find_arg('--rtems-bsp')
         if bsp is None or len(bsp) != 2:
             raise error.general('RTEMS BSP not provided or an invalid option')
-- 
2.16.4



More information about the devel mailing list