summaryrefslogtreecommitdiff
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
parente6bf128eeade949c62ce3d213dfd57da72f08065 (diff)
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.
-rw-r--r--tester/rt/config.py2
-rw-r--r--tester/rtems/testing/bsps/psim-run.ini11
2 files changed, 7 insertions, 6 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()
diff --git a/tester/rtems/testing/bsps/psim-run.ini b/tester/rtems/testing/bsps/psim-run.ini
index 854269a..17e34d8 100644
--- a/tester/rtems/testing/bsps/psim-run.ini
+++ b/tester/rtems/testing/bsps/psim-run.ini
@@ -34,8 +34,9 @@
# Warning: This is not working cleanly on MacOS. I am not sure why. The gdb version does work.
#
[psim-run]
-bsp = psim
-arch = powerpc
-tester = %{_rtscripts}/run.cfg
-bsp_run_cmd = %{rtems_tools}/%{bsp_arch}-rtems%{rtems_version}-run
-bsp_run_opts = -f %{_rtscripts}/bsps/psim-device-tree
+bsp = psim
+arch = powerpc
+tester = %{_rtscripts}/run.cfg
+exe_ignore_ret = 1
+bsp_run_cmd = %{rtems_tools}/%{bsp_arch}-rtems%{rtems_version}-run
+bsp_run_opts = -f %{_rtscripts}/bsps/psim-device-tree