/Zephyr-latest/scripts/pylib/twister/twisterlib/ |
D | statuses.py | 15 class TwisterStatus(str, Enum): class 23 return TwisterStatus.NONE 26 def get_color(status: TwisterStatus) -> str: argument 28 TwisterStatus.PASS: Fore.GREEN, 29 TwisterStatus.NOTRUN: Fore.CYAN, 30 TwisterStatus.SKIP: Fore.YELLOW, 31 TwisterStatus.FILTER: Fore.YELLOW, 32 TwisterStatus.BLOCK: Fore.YELLOW, 33 TwisterStatus.FAIL: Fore.RED, 34 TwisterStatus.ERROR: Fore.RED, [all …]
|
D | reports.py | 17 from twisterlib.statuses import TwisterStatus 72 status: TwisterStatus, argument 73 ts_status: TwisterStatus, argument 83 if status in [TwisterStatus.SKIP, TwisterStatus.FILTER]: 92 if status in [TwisterStatus.SKIP, TwisterStatus.FILTER]: 95 if ts_status == TwisterStatus.PASS and not runnable: 100 elif status in [TwisterStatus.FAIL, TwisterStatus.BLOCK]: 105 elif status == TwisterStatus.ERROR: 110 elif status == TwisterStatus.PASS: 112 elif status == TwisterStatus.NOTRUN: [all …]
|
D | harness.py | 25 from twisterlib.statuses import TwisterStatus 43 self._status = TwisterStatus.NONE 75 def status(self) -> TwisterStatus: 79 def status(self, value : TwisterStatus) -> None: argument 83 self._status = TwisterStatus[key] 152 self.status = TwisterStatus.FAIL 155 self.status = TwisterStatus.PASS 158 self.status = TwisterStatus.FAIL 188 self.instance.status = TwisterStatus.PASS 190 tc.status = TwisterStatus.PASS [all …]
|
D | runner.py | 32 from twisterlib.statuses import TwisterStatus 572 self.instance.status = TwisterStatus.NOTRUN 573 self.instance.add_missing_case_status(TwisterStatus.NOTRUN, "Test was built only") 575 self.instance.status = TwisterStatus.PASS 611 self.instance.status = TwisterStatus.SKIP 615 self.instance.status = TwisterStatus.SKIP 619 self.instance.status = TwisterStatus.ERROR 734 self.instance.status = TwisterStatus.ERROR 962 if self.instance.status in [TwisterStatus.FAIL, TwisterStatus.ERROR]: 968 self.instance.status = TwisterStatus.FILTER [all …]
|
D | handlers.py | 31 from twisterlib.statuses import TwisterStatus 117 harness_status != TwisterStatus.PASS: 135 self.instance.status = TwisterStatus.FAIL 138 tc.status = TwisterStatus.FAIL 155 if self.instance.status == TwisterStatus.FAIL: 158 self.instance.status = TwisterStatus.FAIL 162 tc.status = TwisterStatus.FAIL 235 harness.status != TwisterStatus.NONE 323 self.instance.status = TwisterStatus.FAIL 330 self.instance.add_missing_case_status(TwisterStatus.BLOCK) [all …]
|
D | package.py | 10 from twisterlib.statuses import TwisterStatus 31 if t['status'] != TwisterStatus.FILTER:
|
D | testinstance.py | 35 from twisterlib.statuses import TwisterStatus 57 self._status = TwisterStatus.NONE 113 def status(self) -> TwisterStatus: 117 def status(self, value : TwisterStatus) -> None: argument 121 self._status = TwisterStatus[key] 127 self.status = TwisterStatus.FILTER 157 if case.status == TwisterStatus.STARTED: 158 case.status = TwisterStatus.FAIL 159 elif case.status == TwisterStatus.NONE:
|
D | testsuite.py | 18 from twisterlib.statuses import TwisterStatus 383 self._status = TwisterStatus.NONE 394 def status(self) -> TwisterStatus: 398 def status(self, value : TwisterStatus) -> None: argument 402 self._status = TwisterStatus[key] 456 self._status = TwisterStatus.NONE 462 def status(self) -> TwisterStatus: 466 def status(self, value : TwisterStatus) -> None: argument 470 self._status = TwisterStatus[key]
|
D | testplan.py | 36 from twisterlib.statuses import TwisterStatus 314 to_run = {k : v for k,v in self.instances.items() if v.status == TwisterStatus.NONE} 331 skipped = {k : v for k,v in self.instances.items() if v.status == TwisterStatus.SKIP} 332 errors = {k : v for k,v in self.instances.items() if v.status == TwisterStatus.ERROR} 723 status = TwisterStatus(ts.get('status')) 725 if status in [TwisterStatus.ERROR, TwisterStatus.FAIL]: 731 instance.status = TwisterStatus.NONE 736 elif status == TwisterStatus.NOTRUN and instance.run and self.options.test_only: 737 instance.status = TwisterStatus.NONE 747 tc_status = TwisterStatus(tc.get('status')) [all …]
|
D | twister_main.py | 21 from twisterlib.statuses import TwisterStatus 145 if i.status == TwisterStatus.FILTER:
|
/Zephyr-latest/scripts/tests/twister/ |
D | test_harness.py | 32 from twisterlib.statuses import TwisterStatus 154 ("RunID: 12345", False, False, False, TwisterStatus.NONE, True), 155 ("PROJECT EXECUTION SUCCESSFUL", False, False, False, TwisterStatus.PASS, False), 156 ("PROJECT EXECUTION SUCCESSFUL", True, False, False, TwisterStatus.FAIL, False), 157 ("PROJECT EXECUTION FAILED", False, False, False, TwisterStatus.FAIL, False), 158 ("ZEPHYR FATAL ERROR", False, True, False, TwisterStatus.NONE, False), 159 ("GCOV_COVERAGE_DUMP_START", None, None, True, TwisterStatus.NONE, False), 160 ("GCOV_COVERAGE_DUMP_END", None, None, False, TwisterStatus.NONE, False), 181 harness.status = TwisterStatus.NONE 255 assert instance.status == TwisterStatus.PASS [all …]
|
D | test_handlers.py | 29 from twisterlib.statuses import TwisterStatus 62 instance.status = TwisterStatus.NONE 134 harness.status = TwisterStatus.NONE 144 assert handler.instance.status == TwisterStatus.FAIL 147 assert all(testcase.status == TwisterStatus.FAIL for \ 177 harness_status = TwisterStatus.PASS 208 assert handler.instance.status == TwisterStatus.FAIL 212 testcase.status == TwisterStatus.FAIL for testcase in handler.instance.testcases 301 mock.Mock(status=TwisterStatus.NONE, capture_coverage=False), 321 mock.Mock(status=TwisterStatus.PASS, capture_coverage=False), [all …]
|
D | test_runner.py | 27 from twisterlib.statuses import TwisterStatus 265 True, True, TwisterStatus.NOTRUN, None, False, True), 267 False, False, TwisterStatus.PASS, None, False, False), 269 True, True, TwisterStatus.SKIP, 'FLASH overflow', True, False), 271 True, True, TwisterStatus.SKIP, 'imgtool overflow', True, False), 273 True, True, TwisterStatus.ERROR, 'Build failure', False, False) 318 instance_mock.status = TwisterStatus.NONE 366 TwisterStatus.NOTRUN, 'Test was built only' 378 TwisterStatus.NONE, None, 393 TwisterStatus.ERROR, 'CMake build failure', [all …]
|
D | test_testplan.py | 19 from twisterlib.statuses import TwisterStatus 186 …filtered_instances = list(filter(lambda item: item.status == TwisterStatus.FILTER, plan.instances… 220 …filtered_instances = list(filter(lambda item: item.status == TwisterStatus.FILTER, class_testplan… 251 …filtered_instances = list(filter(lambda item: item.status == TwisterStatus.FILTER, class_testplan… 343 assert instance.status == TwisterStatus.NONE 345 assert instance.status == TwisterStatus.FILTER 349 assert instance.status == TwisterStatus.FILTER 352 assert instance.status == TwisterStatus.NONE 396 filter(lambda item: item.status == TwisterStatus.FILTER, plan.instances.values()) 825 'plat1/testA': mock.Mock(status=TwisterStatus.NONE), [all …]
|
D | test_testinstance.py | 20 from twisterlib.statuses import TwisterStatus 278 assert testinstance.status == TwisterStatus.FILTER 323 status = TwisterStatus.PASS 327 testinstance.testcases[0].status = TwisterStatus.STARTED 328 testinstance.testcases[-1].status = TwisterStatus.NONE 332 assert testinstance.testcases[0].status == TwisterStatus.FAIL 333 assert testinstance.testcases[-1].status == TwisterStatus.PASS 368 status = TwisterStatus.PASS
|
D | test_testsuite.py | 20 from twisterlib.statuses import TwisterStatus 863 case_greater.status = TwisterStatus.FAIL
|
/Zephyr-latest/scripts/tests/twister_blackbox/ |
D | test_footprint.py | 19 from twisterlib.statuses import TwisterStatus 80 if TwisterStatus(ts.get('status')) == TwisterStatus.NOTRUN: 142 if TwisterStatus(ts.get('status')) == TwisterStatus.NOTRUN: 167 if TwisterStatus(ts.get('status')) == TwisterStatus.NOTRUN: 207 if TwisterStatus(ts.get('status')) == TwisterStatus.NOTRUN: 276 if TwisterStatus(ts.get('status')) == TwisterStatus.NOTRUN: 349 if TwisterStatus(ts.get('status')) == TwisterStatus.NOTRUN: 446 if TwisterStatus(ts.get('status')) == TwisterStatus.NOTRUN:
|
D | test_tooling.py | 18 from twisterlib.statuses import TwisterStatus 87 assert filtered_j[0][3] != TwisterStatus.FILTER
|
D | test_report.py | 22 from twisterlib.statuses import TwisterStatus 418 statuses = [TwisterStatus(testsuite.get('status')) for testsuite in testsuites]
|
/Zephyr-latest/scripts/ci/ |
D | test_plan.py | 40 from pylib.twister.twisterlib.statuses import TwisterStatus 483 if TwisterStatus(ts.get('status')) == TwisterStatus.FILTER: 488 if TwisterStatus(ts.get('status')) == TwisterStatus.ERROR:
|