summaryrefslogtreecommitdiffstats
path: root/tester/rt
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2019-02-08 05:34:40 +1100
committerChris Johns <chrisj@rtems.org>2019-02-08 05:41:03 +1100
commit7f85a65b9dbfbb85784fd27d3e5eed6dee337da2 (patch)
tree8f168fc73a7449618bb4b24cca44eaadb0fd50fa /tester/rt
parentrtemstoolkit/config: Unlock when printing to avoid blocking. (diff)
downloadrtems-tools-7f85a65b9dbfbb85784fd27d3e5eed6dee337da2.tar.bz2
tester: Ignore the execute return code for some commands
Some simulators like psim-run return a non-zero error code. Allow a BSP configuration to ignore the return code.
Diffstat (limited to 'tester/rt')
-rw-r--r--tester/rt/config.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tester/rt/config.py b/tester/rt/config.py
index 457c0bd..aa4a2d8 100644
--- a/tester/rt/config.py
+++ b/tester/rt/config.py
@@ -229,7 +229,7 @@ class file(config.file):
timeout = (int(self.expand('%{timeout}')),
self._timeout))
self._lock()
- if not self.kill_good and ec > 0:
+ if not (self.kill_good or self.defined('exe_ignore_ret')) and ec > 0:
self._error('execute failed: %s: exit-code:%d' % (' '.join(data), ec))
elif self.timedout:
self.process.kill()