Beispiel #1
0
 def RunTest(self, test):
   self._fails += 1
   results = base_test_result.TestRunResults()
   if self._fails <= 2:
     results.AddResult(base_test_result.BaseTestResult(
         test, base_test_result.ResultType.FAIL))
     return (results, test)
   else:
     results.AddResult(base_test_result.BaseTestResult(
         test, base_test_result.ResultType.PASS))
     return (results, None)
 def RunTest(self, test):
     results = base_test_result.TestRunResults()
     results.AddResult(
         base_test_result.BaseTestResult(test,
                                         base_test_result.ResultType.FAIL))
     return (results, test)