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

Side by Side Diff: build/android/pylib/perf/perf_test_instance.py

Issue 2498553004: Add support for Junit tests in platform mode. (Closed)
Patch Set: Add support for Junit tests in platform mode. Created 4 years, 1 month 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 2016 The Chromium Authors. All rights reserved. 1 # Copyright 2016 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import json 5 import json
6 import logging 6 import logging
7 import os 7 import os
8 import pickle 8 import pickle
9 import re 9 import re
10 10
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 self._no_timeout = args.no_timeout 74 self._no_timeout = args.no_timeout
75 self._output_chartjson_data = args.output_chartjson_data 75 self._output_chartjson_data = args.output_chartjson_data
76 self._output_json_list = args.output_json_list 76 self._output_json_list = args.output_json_list
77 self._print_step = args.print_step 77 self._print_step = args.print_step
78 self._single_step = ( 78 self._single_step = (
79 ' '.join(args.single_step_command) if args.single_step else None) 79 ' '.join(args.single_step_command) if args.single_step else None)
80 self._steps = args.steps 80 self._steps = args.steps
81 self._test_filter = args.test_filter 81 self._test_filter = args.test_filter
82 self._write_buildbot_json = args.write_buildbot_json 82 self._write_buildbot_json = args.write_buildbot_json
83 83
84 #override
84 def SetUp(self): 85 def SetUp(self):
85 pass 86 pass
86 87
88 #override
87 def TearDown(self): 89 def TearDown(self):
88 pass 90 pass
89 91
90 def OutputJsonList(self): 92 def OutputJsonList(self):
91 try: 93 try:
92 with file(self._steps, 'r') as i: 94 with file(self._steps, 'r') as i:
93 all_steps = json.load(i) 95 all_steps = json.load(i)
94 96
95 step_values = [] 97 step_values = []
96 for k, v in all_steps['steps'].iteritems(): 98 for k, v in all_steps['steps'].iteritems():
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 234
233 @property 235 @property
234 def test_filter(self): 236 def test_filter(self):
235 return self._test_filter 237 return self._test_filter
236 238
237 239
238 class PersistentDataError(base_error.BaseError): 240 class PersistentDataError(base_error.BaseError):
239 def __init__(self, message): 241 def __init__(self, message):
240 super(PersistentDataError, self).__init__(message) 242 super(PersistentDataError, self).__init__(message)
241 self._is_infra_error = True 243 self._is_infra_error = True
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698