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

Side by Side Diff: tools/perf/measurements/measurement_unittest.py

Issue 191973003: [Telemetry] Make measurement smoke test error more useful (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 6 years, 9 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 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 logging 5 import logging
6 import os 6 import os
7 import unittest 7 import unittest
8 8
9 from telemetry import test 9 from telemetry import test
10 from telemetry.core import discover 10 from telemetry.core import discover
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 class SinglePageBenchmark(benchmark): # pylint: disable=W0232 49 class SinglePageBenchmark(benchmark): # pylint: disable=W0232
50 def CreatePageSet(self, options): 50 def CreatePageSet(self, options):
51 # pylint: disable=E1002 51 # pylint: disable=E1002
52 ps = super(SinglePageBenchmark, self).CreatePageSet(options) 52 ps = super(SinglePageBenchmark, self).CreatePageSet(options)
53 ps.pages = ps.pages[:1] 53 ps.pages = ps.pages[:1]
54 return ps 54 return ps
55 55
56 logging.info('running: %s', benchmark) 56 logging.info('running: %s', benchmark)
57 options = options_for_unittests.GetCopy() 57 options = options_for_unittests.GetCopy()
58 options.output_format = 'none' 58 options.output_format = 'none'
59 self.assertEqual(0, SinglePageBenchmark().Run(options)) 59 self.assertEqual(0, SinglePageBenchmark().Run(options),
60 msg='Failed: %s' % benchmark)
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698