Ejemplo n.º 1
0
 def _RunTests(mock_runner, tests):
     results = []
     tests = test_dispatcher._TestCollection([test_dispatcher._Test(t) for t in tests])
     test_dispatcher._RunTestsFromQueue(mock_runner, tests, results, watchdog_timer.WatchdogTimer(None), 2)
     run_results = base_test_result.TestRunResults()
     for r in results:
         run_results.AddTestRunResults(r)
     return run_results
Ejemplo n.º 2
0
 def _RunTests(mock_runner, tests):
   results = []
   tests = test_dispatcher._TestCollection(
       [test_dispatcher._Test(t) for t in tests])
   test_dispatcher._RunTestsFromQueue(mock_runner, tests, results,
                                      watchdog_timer.WatchdogTimer(None), 2)
   run_results = base_test_result.TestRunResults()
   for r in results:
     run_results.AddTestRunResults(r)
   return run_results
Ejemplo n.º 3
0
 def setUp(self):
     self.tests = ["a", "b", "c", "d", "e", "f", "g"]
     shared_test_collection = test_dispatcher._TestCollection([test_dispatcher._Test(t) for t in self.tests])
     self.test_collection_factory = lambda: shared_test_collection
 def setUp(self):
   self.tests = ['a', 'b', 'c', 'd', 'e', 'f', 'g']
   shared_test_collection = test_dispatcher._TestCollection(
       [test_dispatcher._Test(t) for t in self.tests])
   self.test_collection_factory = lambda: shared_test_collection
Ejemplo n.º 5
0
 def setUp(self):
   self.tests = ['a', 'b', 'c', 'd', 'e', 'f', 'g']
   shared_test_collection = test_dispatcher._TestCollection(
       [test_dispatcher._Test(t) for t in self.tests])
   self.test_collection_factory = lambda: shared_test_collection