• Home
  • Raw
  • Download

Lines Matching refs:experiment

106   experiment = ExperimentFactory().GetExperiment(efile,
109 for label in experiment.labels:
111 return experiment
114 def _InjectSuccesses(experiment, how_many, keyvals, for_benchmark=0): argument
118 num_configs = len(experiment.benchmarks) * len(experiment.labels)
119 num_runs = len(experiment.benchmark_runs) // num_configs
123 bench = experiment.benchmarks[for_benchmark]
144 for label in experiment.labels:
145 experiment.benchmark_runs.extend(
147 return experiment
160 experiment = _InjectSuccesses(MakeMockExperiment(), num_success,
164 experiment.remote[0]: 12 * SECONDS_IN_MIN,
165 experiment.remote[1]: 8 * SECONDS_IN_MIN
169 experiment, email=email).GetReport()
176 self.assertIn('DUT %s: %d min' % (experiment.remote[0], 12), text_report)
177 self.assertIn('DUT %s: %d min' % (experiment.remote[1], 8), text_report)
190 experiment = MakeMockExperiment()
191 cros_machines = experiment.machine_manager.GetMachines()
194 text_results = TextResultsReport.FromExperiment(experiment, email=False)
196 self.assertEqual(total[experiment.remote[0]], 120)
197 self.assertEqual(total[experiment.remote[1]], 240)
228 def _GetOutput(self, experiment=None, benchmark_results=None): argument
230 if experiment is not None:
231 HTMLResultsReport.FromExperiment(experiment).GetReport()
310 experiment = MakeMockExperiment()
311 results = JSONResultsReport.FromExperiment(experiment).GetReportObject()
328 experiment = _InjectSuccesses(MakeMockExperiment(), num_success,
330 results = JSONResultsReport.FromExperiment(experiment).GetReportObject()
333 num_passes = num_success * len(experiment.labels)