Lines Matching refs:test_case
77 def GetRequirements(self, test_case): argument
88 if test_case.fullname in tests)
93 if test_case.testsuite in tests)
97 def Check(self, test_case): argument
110 if (test_case.requirement_state ==
112 not self.TestBinaryExists(test_case)):
115 for requirement in self.GetRequirements(test_case):
123 logging.info("Result for %s's requirement %s is %s", test_case,
126 test_case.requirement_state = ltp_enums.RequirementState.UNSATISFIED
127 test_case.note = note
130 test_case.requirement_state = ltp_enums.RequirementState.SATISFIED
143 test_case.GetRequiredExecutablePaths(self.ltp_bin_host_path)
144 for test_case in test_cases)
192 def TestBinaryExists(self, test_case): argument
201 if test_case.requirement_state == ltp_enums.RequirementState.UNSATISFIED:
204 "%s" % test_case)
207 executables = test_case.GetRequiredExecutablePaths(
215 test_case.requirement_state = ltp_enums.RequirementState.UNSATISFIED
216 test_case.note = "Some executables not exist: {}".format(
219 "Reason: {}".format(test_case, test_case.note))