diff options
author | dtu@chromium.org <dtu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-17 23:46:11 +0000 |
---|---|---|
committer | dtu@chromium.org <dtu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-17 23:46:11 +0000 |
commit | a404b65aef97c0741bad1e8eda962b82b2ca8b42 (patch) | |
tree | bf5bc24f01321485e9dccfa3351387081bba40a9 /tools | |
parent | f341ca7656f1842b46272d09a29948c6224ea03e (diff) | |
download | chromium_src-a404b65aef97c0741bad1e8eda962b82b2ca8b42.zip chromium_src-a404b65aef97c0741bad1e8eda962b82b2ca8b42.tar.gz chromium_src-a404b65aef97c0741bad1e8eda962b82b2ca8b42.tar.bz2 |
[telemetry] Fix testConsoleOutputStream failure
BUG=222657
R=dtu@chromium.org
Review URL: https://codereview.chromium.org/12742009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@194723 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools')
-rw-r--r-- | tools/telemetry/telemetry/core/chrome/inspector_console_unittest.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tools/telemetry/telemetry/core/chrome/inspector_console_unittest.py b/tools/telemetry/telemetry/core/chrome/inspector_console_unittest.py index 76c611c..efbe273 100644 --- a/tools/telemetry/telemetry/core/chrome/inspector_console_unittest.py +++ b/tools/telemetry/telemetry/core/chrome/inspector_console_unittest.py @@ -30,7 +30,8 @@ class TabConsoleTest(tab_test_case.TabTestCase): lines = [l for l in stream.getvalue().split('\n') if len(l)] self.assertTrue(len(lines) >= 1) - for l in lines: - u_l = 'http://localhost:(\d+)/page_that_logs_to_console.html:9' - self.assertTrue(re.match('At %s: Hello, world' % u_l, l)) + for line in lines: + prefix = 'http://(.+)/page_that_logs_to_console.html:9' + expected_line = 'At %s: Hello, world' % prefix + self.assertTrue(re.match(expected_line, line)) |