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

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

Issue 27554003: Publish the location of results.html to user in keyboard interrupt scenario. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Making the result as file url. Created 7 years, 2 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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 self.unexpected_failures += 1 93 self.unexpected_failures += 1
94 if test_result.type == test_expectations.CRASH: 94 if test_result.type == test_expectations.CRASH:
95 self.unexpected_crashes += 1 95 self.unexpected_crashes += 1
96 elif test_result.type == test_expectations.TIMEOUT: 96 elif test_result.type == test_expectations.TIMEOUT:
97 self.unexpected_timeouts += 1 97 self.unexpected_timeouts += 1
98 if test_is_slow: 98 if test_is_slow:
99 self.slow_tests.add(test_result.test_name) 99 self.slow_tests.add(test_result.test_name)
100 100
101 101
102 class RunDetails(object): 102 class RunDetails(object):
103 def __init__(self, exit_code, summarized_full_results=None, summarized_faili ng_results=None, initial_results=None, retry_results=None, enabled_pixel_tests_i n_retry=False): 103 def __init__(self, exit_code, summarized_full_results=None, summarized_faili ng_results=None, initial_results=None, retry_results=None, enabled_pixel_tests_i n_retry=False, results_path=None):
104 self.exit_code = exit_code 104 self.exit_code = exit_code
105 self.summarized_full_results = summarized_full_results 105 self.summarized_full_results = summarized_full_results
106 self.summarized_failing_results = summarized_failing_results 106 self.summarized_failing_results = summarized_failing_results
107 self.initial_results = initial_results 107 self.initial_results = initial_results
108 self.retry_results = retry_results 108 self.retry_results = retry_results
109 self.enabled_pixel_tests_in_retry = enabled_pixel_tests_in_retry 109 self.enabled_pixel_tests_in_retry = enabled_pixel_tests_in_retry
110 self.results = results_path
Dirk Pranke 2013/10/21 18:38:48 This should probably be self.results_path . 'resul
110 111
111 112
112 def _interpret_test_failures(failures): 113 def _interpret_test_failures(failures):
113 test_dict = {} 114 test_dict = {}
114 failure_types = [type(failure) for failure in failures] 115 failure_types = [type(failure) for failure in failures]
115 # FIXME: get rid of all this is_* values once there is a 1:1 map between 116 # FIXME: get rid of all this is_* values once there is a 1:1 map between
116 # TestFailure type and test_expectations.EXPECTATION. 117 # TestFailure type and test_expectations.EXPECTATION.
117 if test_failures.FailureMissingAudio in failure_types: 118 if test_failures.FailureMissingAudio in failure_types:
118 test_dict['is_missing_audio'] = True 119 test_dict['is_missing_audio'] = True
119 120
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 except Exception, e: 267 except Exception, e:
267 _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)) 268 _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))
268 # Handle cases where we're running outside of version control. 269 # Handle cases where we're running outside of version control.
269 import traceback 270 import traceback
270 _log.debug('Failed to learn head svn revision:') 271 _log.debug('Failed to learn head svn revision:')
271 _log.debug(traceback.format_exc()) 272 _log.debug(traceback.format_exc())
272 results['chromium_revision'] = "" 273 results['chromium_revision'] = ""
273 results['blink_revision'] = "" 274 results['blink_revision'] = ""
274 275
275 return results 276 return results
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698