Home | History | Annotate | Download | only in graphics_PiglitBVT

Lines Matching refs:statistics

169   statistics = {}
173 statistics[test] = Test(None, 0.0, 0, 0)
176 print('Updating statistics from %s.' % main_file, file=sys.stderr)
179 command = statistics[test].command
188 statistics[test] = Test(command,
190 statistics[test].time),
191 statistics[test].passing_count + 1,
192 statistics[test].not_passing_count)
194 statistics[test] = Test(command,
195 statistics[test].time,
196 statistics[test].passing_count,
197 statistics[test].not_passing_count + 1)
199 return statistics
202 def get_max_passing(statistics):
207 for test in statistics:
208 max_passing_count = max(statistics[test].passing_count, max_passing_count)
212 def get_passing_tests(statistics, expectations):
217 max_passing_count = get_max_passing(statistics)
218 for test in statistics:
219 if (statistics[test].passing_count == max_passing_count and
220 statistics[test].not_passing_count == 0):
226 def get_intermittent_tests(statistics):
231 max_passing_count = get_max_passing(statistics)
232 for test in statistics:
233 if (statistics[test].passing_count > 0 and
234 statistics[test].passing_count < max_passing_count and
235 statistics[test].not_passing_count > 0):
262 statistics = get_test_statistics(log_dict)
263 expectations = compute_expectations(exp_dict, statistics, family, piglit_path)
269 passing_tests = get_passing_tests(statistics, expectations)
279 time_total += statistics[test].time
290 cmd = cleanup_command(statistics[test].command, piglit_path)
291 time_test = statistics[test].time
303 time_test = statistics[test].time
315 cmd = cleanup_command(statistics[test].command, piglit_path)
316 time_test = statistics[test].time
353 def compute_expectations(exp_dict, statistics, family, piglit_path):
359 flaky_tests = get_intermittent_tests(statistics)
363 max_passing = get_max_passing(statistics)
375 if test in statistics:
376 expectation['command'] = cleanup_command(statistics[test].command,
385 pass_rate = statistics[test].passing_count / float(max_passing)
386 command = statistics[test].command