summaryrefslogtreecommitdiff
path: root/tester
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2020-02-12 07:27:51 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2020-02-26 07:29:53 +0100
commit0d66fd5264b88968b276321115a6794523d37bce (patch)
tree084939fe581bbb4e1efc23bbd134b3968ac0257d /tester
parentfb241f8a562b3523dc6ed480a8ad1e9010dbfbb6 (diff)
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.
Diffstat (limited to 'tester')
-rw-r--r--tester/rt/test.py2
1 files changed, 2 insertions, 0 deletions
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')