Changeset 7f85a65 in rtems-tools


Ignore:
Timestamp:
Feb 7, 2019, 6:34:40 PM (9 days ago)
Author:
Chris Johns <chrisj@…>
Branches:
master
Children:
6e0f49a
Parents:
e6bf128
git-author:
Chris Johns <chrisj@…> (02/07/19 18:34:40)
git-committer:
Chris Johns <chrisj@…> (02/07/19 18:41:03)
Message:

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.

Location:
tester
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • tester/rt/config.py

    re6bf128 r7f85a65  
    230230                                                        self._timeout))
    231231                self._lock()
    232                 if not self.kill_good and ec > 0:
     232                if not (self.kill_good or self.defined('exe_ignore_ret')) and ec > 0:
    233233                    self._error('execute failed: %s: exit-code:%d' % (' '.join(data), ec))
    234234                elif self.timedout:
  • tester/rtems/testing/bsps/psim-run.ini

    re6bf128 r7f85a65  
    3535#
    3636[psim-run]
    37 bsp          = psim
    38 arch         = powerpc
    39 tester       = %{_rtscripts}/run.cfg
    40 bsp_run_cmd  = %{rtems_tools}/%{bsp_arch}-rtems%{rtems_version}-run
    41 bsp_run_opts = -f %{_rtscripts}/bsps/psim-device-tree
     37bsp            = psim
     38arch           = powerpc
     39tester         = %{_rtscripts}/run.cfg
     40exe_ignore_ret = 1
     41bsp_run_cmd    = %{rtems_tools}/%{bsp_arch}-rtems%{rtems_version}-run
     42bsp_run_opts   = -f %{_rtscripts}/bsps/psim-device-tree
Note: See TracChangeset for help on using the changeset viewer.