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

Unified Diff: build/android/pylib/output/noop_output_manager.py

Issue 2933993002: Add local results details pages.
Patch Set: Fix some of Johns comments. Created 3 years, 4 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
Index: build/android/pylib/output/noop_output_manager.py
diff --git a/build/android/pylib/output/noop_output_manager.py b/build/android/pylib/output/noop_output_manager.py
new file mode 100644
index 0000000000000000000000000000000000000000..09ec1808d89cd8954bc36ddf3e92ae445f1e246e
--- /dev/null
+++ b/build/android/pylib/output/noop_output_manager.py
@@ -0,0 +1,43 @@
+# Copyright 2017 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+import contextlib
+
+from pylib.base import output_manager
+
+# TODO(jbudorick): This class is currently mostly unused.
+# Add a --bot-mode argument that all bots pass. If --bot-mode and
+# --local-output args are both not passed to test runner then use this
+# as the output manager impl.
+
+# pylint: disable=abstract-method
+# pylint: disable=no-self-use
+# pylint: disable=super-init-not-called
+# pylint: disable=unused-argument
+
+class NoopOutputManager(output_manager.OutputManager):
+
+ def __init__(self):
+ super(NoopOutputManager, self).__init__()
+
+ #override
+ @contextlib.contextmanager
+ def ArchiveAndDeleteFile(self, *args, **kwargs):
+ yield NoopArchivedFile()
+
+
+class NoopArchivedFile(output_manager.ArchivedFile):
+
+ def __init__(self):
+ pass
+
+ def write(self, *args, **kwargs):
+ pass
+
+ def flush(self, *args, **kwargs):
+ pass
+
+ def Link(self):
+ return ''
+
« no previous file with comments | « build/android/pylib/output/local_output_manager.py ('k') | build/android/pylib/output/remote_output_manager.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698