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

Unified Diff: tools/telemetry/telemetry/unittest/system_stub.py

Issue 607273002: Suppress the logging spams caused by page_runner_unittests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/telemetry/telemetry/page/page_runner_unittest.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/telemetry/telemetry/unittest/system_stub.py
diff --git a/tools/telemetry/telemetry/unittest/system_stub.py b/tools/telemetry/telemetry/unittest/system_stub.py
index ec61eb9d78021f3873f4e50106e1b55d078a4a45..f8b803c94150b18f4ca00c06e2e096411c5998d8 100644
--- a/tools/telemetry/telemetry/unittest/system_stub.py
+++ b/tools/telemetry/telemetry/unittest/system_stub.py
@@ -170,13 +170,20 @@ class CloudStorageModuleStub(object):
class LoggingStub(object):
def __init__(self):
self.warnings = []
+ self.errors = []
def info(self, msg, *args):
pass
- def warn(self, msg, *args):
+ def error(self, msg, *args):
+ self.errors.append(msg % args)
+
+ def warning(self, msg, *args):
self.warnings.append(msg % args)
+ def warn(self, msg, *args):
+ self.warning(msg, *args)
+
class OpenFunctionStub(object):
class FileStub(object):
« no previous file with comments | « tools/telemetry/telemetry/page/page_runner_unittest.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698