def _RunTests(mock_runner, tests): results = [] tests = shard._TestCollection([shard._Test(t) for t in tests]) shard._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
def _RunTests(mock_runner, tests): results = [] tests = shard._TestCollection([shard._Test(t) for t in tests]) shard._RunTestsFromQueue(mock_runner, tests, results, watchdog_timer.WatchdogTimer(None)) run_results = base_test_result.TestRunResults() for r in results: run_results.AddTestRunResults(r) return run_results
def _RunTests(mock_runner, tests): results = [] tests = shard._TestCollection([shard._Test(t) for t in tests]) shard._RunTestsFromQueue(mock_runner, tests, results) return test_result.TestResults.FromTestResults(results)