OLD | NEW |
1 # Copyright (C) 2010, 2012 Google Inc. All rights reserved. | 1 # Copyright (C) 2010, 2012 Google Inc. All rights reserved. |
2 # | 2 # |
3 # Redistribution and use in source and binary forms, with or without | 3 # Redistribution and use in source and binary forms, with or without |
4 # modification, are permitted provided that the following conditions are | 4 # modification, are permitted provided that the following conditions are |
5 # met: | 5 # met: |
6 # | 6 # |
7 # * Redistributions of source code must retain the above copyright | 7 # * Redistributions of source code must retain the above copyright |
8 # notice, this list of conditions and the following disclaimer. | 8 # notice, this list of conditions and the following disclaimer. |
9 # * Redistributions in binary form must reproduce the above | 9 # * Redistributions in binary form must reproduce the above |
10 # copyright notice, this list of conditions and the following disclaimer | 10 # copyright notice, this list of conditions and the following disclaimer |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 | 70 |
71 def cleanup(self): | 71 def cleanup(self): |
72 self._meter.cleanup() | 72 self._meter.cleanup() |
73 | 73 |
74 def __del__(self): | 74 def __del__(self): |
75 self.cleanup() | 75 self.cleanup() |
76 | 76 |
77 def print_config(self, results_directory): | 77 def print_config(self, results_directory): |
78 self._print_default("Using port '%s'" % self._port.name()) | 78 self._print_default("Using port '%s'" % self._port.name()) |
79 self._print_default("Test configuration: %s" % self._port.test_configura
tion()) | 79 self._print_default("Test configuration: %s" % self._port.test_configura
tion()) |
80 self._print_default("Placing test results in %s" % results_directory) | 80 self._print_default("View the test results at file://%s/results.html" %
results_directory) |
81 | 81 |
82 # FIXME: should these options be in printing_options? | 82 # FIXME: should these options be in printing_options? |
83 if self._options.new_baseline: | 83 if self._options.new_baseline: |
84 self._print_default("Placing new baselines in %s" % self._port.basel
ine_path()) | 84 self._print_default("Placing new baselines in %s" % self._port.basel
ine_path()) |
85 | 85 |
86 fs = self._port.host.filesystem | 86 fs = self._port.host.filesystem |
87 fallback_path = [fs.split(x)[1] for x in self._port.baseline_search_path
()] | 87 fallback_path = [fs.split(x)[1] for x in self._port.baseline_search_path
()] |
88 self._print_default("Baseline search path: %s -> generic" % " -> ".join(
fallback_path)) | 88 self._print_default("Baseline search path: %s -> generic" % " -> ".join(
fallback_path)) |
89 | 89 |
90 self._print_default("Using %s build" % self._options.configuration) | 90 self._print_default("Using %s build" % self._options.configuration) |
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
419 self._meter.write_throttled_update(msg) | 419 self._meter.write_throttled_update(msg) |
420 | 420 |
421 def write_update(self, msg): | 421 def write_update(self, msg): |
422 self._meter.write_update(msg) | 422 self._meter.write_update(msg) |
423 | 423 |
424 def writeln(self, msg): | 424 def writeln(self, msg): |
425 self._meter.writeln(msg) | 425 self._meter.writeln(msg) |
426 | 426 |
427 def flush(self): | 427 def flush(self): |
428 self._meter.flush() | 428 self._meter.flush() |
OLD | NEW |