Lines Matching full:tc

189         tc = self.instance.get_case_or_create(self.id)
190 tc.status = TwisterStatus.PASS
257 tc = self.instance.set_case_status_by_name(
262 raise ConfigurationError(self.instance.name, tc.reason)
273 tc = self.instance.set_case_status_by_name(
278 raise ConfigurationError(self.instance.name, tc.reason)
343 tc = self.instance.get_case_or_create(self.get_testcase_name())
345 tc.status = TwisterStatus.PASS
347 tc.status = TwisterStatus.FAIL
602 tc = self.instance.add_testcase(f"{self.id}.{elem_tc.get('name')}")
603 tc.duration = float(elem_tc.get('time'))
606 tc.status = TwisterStatus.PASS
609 tc.status = TwisterStatus.SKIP
611 tc.status = TwisterStatus.FAIL
613 tc.status = TwisterStatus.ERROR
614 tc.reason = elem.get('message')
615 tc.output = elem.text
636 self.tc = None
659 self.tc is None
660 ), f"gTest error, {self.tc} didn't finish"
663 tc = self.instance.get_case_by_name(name)
664 assert tc is None, f"gTest error, {tc} running twice"
667 tc = self.instance.get_case_or_create(name)
668 self.tc = tc
669 self.tc.status = TwisterStatus.STARTED
676 tc = self.instance.get_case_or_create(self.id)
677 if self.has_failures or self.tc is not None:
679 tc.status = TwisterStatus.FAIL
682 tc.status = TwisterStatus.PASS
692 tc = self.instance.get_case_by_name(name)
694 tc is not None and tc == self.tc
695 ), f"gTest error, mismatched tests. Expected {self.tc} but got {tc}"
698 self.tc = None
701 tc.status = state
702 if tc.status == TwisterStatus.FAIL:
704 tc.output = self.testcase_output
774 if tc := self.instance.get_case_by_name(tc_fq_id):
777 return tc
852 tc = self.get_testcase(tc_name, 'TC_START')
853 self.start_case(tc.name)
857 tc.status = TwisterStatus.STARTED
867 tc = self.get_testcase(tc_name, 'TC_END')
868 self.end_case(tc.name)
869 tc.status = TwisterStatus[matched_status]
870 if tc.status == TwisterStatus.SKIP:
871 tc.reason = "ztest skip"
872 tc.duration = float(result_match.group(4))
873 if tc.status == TwisterStatus.FAIL:
874 tc.output = self.testcase_output
888 tc = self.get_testcase(tc_name, 'TS_SUM', suite_name)
889 self.end_case(tc.name, 'TS_SUM')
890 tc.status = TwisterStatus[matched_status]
891 if tc.status == TwisterStatus.SKIP:
892 tc.reason = "ztest skip"
893 tc.duration = float(test_case_summary_match.group(5))
894 if tc.status == TwisterStatus.FAIL:
895 tc.output = self.testcase_output
904 tc = self.instance.get_case_or_create(self.id)
906 tc.status = TwisterStatus.PASS
908 tc.status = TwisterStatus.FAIL
909 tc.reason = "Test failure"