[rtems-tools commit] tester: Use prefix for rtems_tools by default

Sebastian Huber sebh at rtems.org
Wed Feb 26 06:30:12 UTC 2020


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

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Wed Feb 12 07:27:51 2020 +0100

tester: Use prefix for rtems_tools by default

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



More information about the vc mailing list