This is a setup / run / teardown setup for simple tests that just do a single run. More complex tests might need to run the steps separately, e.g. gdb tests must run multiple commands: one for the run and one GDB. :param run_obj: callable object :param run_
(self, run_obj, run_args=None, test_id=None)
| 1130 | self.tests = [] |
| 1131 | |
| 1132 | def run_test(self, run_obj, run_args=None, test_id=None): |
| 1133 | ''' |
| 1134 | This is a setup / run / teardown setup for simple tests that just do a single run. |
| 1135 | |
| 1136 | More complex tests might need to run the steps separately, e.g. gdb tests |
| 1137 | must run multiple commands: one for the run and one GDB. |
| 1138 | |
| 1139 | :param run_obj: callable object |
| 1140 | :param run_args: arguments to be passed to the runnable object |
| 1141 | :param test_id: test identifier, to be added in addition to of arch and emulator ids |
| 1142 | ''' |
| 1143 | if run_obj.is_arch_supported(self.env['arch']): |
| 1144 | if run_args is None: |
| 1145 | run_args = {} |
| 1146 | test_id_string = self.test_setup(test_id) |
| 1147 | exit_status = run_obj(**run_args) |
| 1148 | self.test_teardown(run_obj, exit_status, test_id_string) |
| 1149 | |
| 1150 | def test_setup(self, test_id): |
| 1151 | test_id_string = '{} {}'.format(self.env['emulator'], self.env['arch']) |
nothing calls this directly
no test coverage detected