OLD | NEW |
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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 | 57 |
58 | 58 |
59 class PerfTestInstance(test_instance.TestInstance): | 59 class PerfTestInstance(test_instance.TestInstance): |
60 def __init__(self, args, _): | 60 def __init__(self, args, _): |
61 super(PerfTestInstance, self).__init__() | 61 super(PerfTestInstance, self).__init__() |
62 | 62 |
63 self._collect_chartjson_data = args.collect_chartjson_data | 63 self._collect_chartjson_data = args.collect_chartjson_data |
64 self._dry_run = args.dry_run | 64 self._dry_run = args.dry_run |
65 self._flaky_steps = args.flaky_steps | 65 self._flaky_steps = args.flaky_steps |
66 self._output_dir_archive_path = args.output_dir_archive_path | 66 self._output_dir_archive_path = args.output_dir_archive_path |
| 67 # TODO(rnephew): Get rid of this when everything uses |
| 68 # --output-dir-archive-path |
| 69 if self._output_dir_archive_path is None and args.get_output_dir_archive: |
| 70 self._output_dir_archive_path = args.get_output_dir_archive |
67 self._known_devices_file = args.known_devices_file | 71 self._known_devices_file = args.known_devices_file |
68 self._max_battery_temp = args.max_battery_temp | 72 self._max_battery_temp = args.max_battery_temp |
69 self._min_battery_level = args.min_battery_level | 73 self._min_battery_level = args.min_battery_level |
70 self._no_timeout = args.no_timeout | 74 self._no_timeout = args.no_timeout |
71 self._output_chartjson_data = args.output_chartjson_data | 75 self._output_chartjson_data = args.output_chartjson_data |
72 self._output_json_list = args.output_json_list | 76 self._output_json_list = args.output_json_list |
73 self._print_step = args.print_step | 77 self._print_step = args.print_step |
74 self._single_step = ( | 78 self._single_step = ( |
75 ' '.join(args.single_step_command) if args.single_step else None) | 79 ' '.join(args.single_step_command) if args.single_step else None) |
76 self._steps = args.steps | 80 self._steps = args.steps |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
228 | 232 |
229 @property | 233 @property |
230 def test_filter(self): | 234 def test_filter(self): |
231 return self._test_filter | 235 return self._test_filter |
232 | 236 |
233 | 237 |
234 class PersistentDataError(base_error.BaseError): | 238 class PersistentDataError(base_error.BaseError): |
235 def __init__(self, message): | 239 def __init__(self, message): |
236 super(PersistentDataError, self).__init__(message) | 240 super(PersistentDataError, self).__init__(message) |
237 self._is_infra_error = True | 241 self._is_infra_error = True |
OLD | NEW |