[rtems-tools commit] tester: Ignore the execute return code for some commands
Chris Johns
chrisj at rtems.org
Thu Feb 7 18:41:54 UTC 2019
Module: rtems-tools
Branch: master
Commit: 7f85a65b9dbfbb85784fd27d3e5eed6dee337da2
Changeset: http://git.rtems.org/rtems-tools/commit/?id=7f85a65b9dbfbb85784fd27d3e5eed6dee337da2
Author: Chris Johns <chrisj at rtems.org>
Date: Fri Feb 8 05:34:40 2019 +1100
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.
---
tester/rt/config.py | 2 +-
tester/rtems/testing/bsps/psim-run.ini | 11 ++++++-----
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
More information about the vc
mailing list