Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(50)

Side by Side Diff: Tools/Scripts/webkitpy/layout_tests/models/test_run_results.py

Issue 23496003: User interruption should still create results.html for run-webkit-tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed failing webkitpy tests and skipping printing of bot results in case of user interruption. Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 # Copyright (C) 2010 Google Inc. All rights reserved. 1 # Copyright (C) 2010 Google Inc. All rights reserved.
2 # Copyright (C) 2010 Gabor Rapcsanyi (rgabor@inf.u-szeged.hu), University of Sze ged 2 # Copyright (C) 2010 Gabor Rapcsanyi (rgabor@inf.u-szeged.hu), University of Sze ged
3 # 3 #
4 # Redistribution and use in source and binary forms, with or without 4 # Redistribution and use in source and binary forms, with or without
5 # modification, are permitted provided that the following conditions are 5 # modification, are permitted provided that the following conditions are
6 # met: 6 # met:
7 # 7 #
8 # * Redistributions of source code must retain the above copyright 8 # * Redistributions of source code must retain the above copyright
9 # notice, this list of conditions and the following disclaimer. 9 # notice, this list of conditions and the following disclaimer.
10 # * Redistributions in binary form must reproduce the above 10 # * Redistributions in binary form must reproduce the above
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 self.unexpected_results_by_name = {} 55 self.unexpected_results_by_name = {}
56 self.failures_by_name = {} 56 self.failures_by_name = {}
57 self.total_failures = 0 57 self.total_failures = 0
58 self.expected_skips = 0 58 self.expected_skips = 0
59 for expectation in test_expectations.TestExpectations.EXPECTATIONS.value s(): 59 for expectation in test_expectations.TestExpectations.EXPECTATIONS.value s():
60 self.tests_by_expectation[expectation] = set() 60 self.tests_by_expectation[expectation] = set()
61 for timeline in test_expectations.TestExpectations.TIMELINES.values(): 61 for timeline in test_expectations.TestExpectations.TIMELINES.values():
62 self.tests_by_timeline[timeline] = expectations.get_tests_with_timel ine(timeline) 62 self.tests_by_timeline[timeline] = expectations.get_tests_with_timel ine(timeline)
63 self.slow_tests = set() 63 self.slow_tests = set()
64 self.interrupted = False 64 self.interrupted = False
65 self.keyboard_interrupted = False
65 self.run_time = 0 # The wall clock time spent running the tests (layout _test_runner.run()). 66 self.run_time = 0 # The wall clock time spent running the tests (layout _test_runner.run()).
66 67
67 def add(self, test_result, expected, test_is_slow): 68 def add(self, test_result, expected, test_is_slow):
68 result_type_for_stats = test_result.type 69 result_type_for_stats = test_result.type
69 if test_expectations.WONTFIX in self.expectations.model().get_expectatio ns(test_result.test_name): 70 if test_expectations.WONTFIX in self.expectations.model().get_expectatio ns(test_result.test_name):
70 result_type_for_stats = test_expectations.WONTFIX 71 result_type_for_stats = test_expectations.WONTFIX
71 self.tests_by_expectation[result_type_for_stats].add(test_result.test_na me) 72 self.tests_by_expectation[result_type_for_stats].add(test_result.test_na me)
72 73
73 self.results_by_name[test_result.test_name] = test_result 74 self.results_by_name[test_result.test_name] = test_result
74 if test_result.type != test_expectations.SKIP: 75 if test_result.type != test_expectations.SKIP:
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 except Exception, e: 269 except Exception, e:
269 _log.warn("Failed to determine svn revision for checkout (cwd: %s, webki t_base: %s), leaving 'revision' key blank in full_results.json.\n%s" % (port_obj ._filesystem.getcwd(), port_obj.path_from_webkit_base(), e)) 270 _log.warn("Failed to determine svn revision for checkout (cwd: %s, webki t_base: %s), leaving 'revision' key blank in full_results.json.\n%s" % (port_obj ._filesystem.getcwd(), port_obj.path_from_webkit_base(), e))
270 # Handle cases where we're running outside of version control. 271 # Handle cases where we're running outside of version control.
271 import traceback 272 import traceback
272 _log.debug('Failed to learn head svn revision:') 273 _log.debug('Failed to learn head svn revision:')
273 _log.debug(traceback.format_exc()) 274 _log.debug(traceback.format_exc())
274 results['chromium_revision'] = "" 275 results['chromium_revision'] = ""
275 results['blink_revision'] = "" 276 results['blink_revision'] = ""
276 277
277 return results 278 return results
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698