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

Unified Diff: Tools/Scripts/webkitpy/common/system/systemhost.py

Issue 23672050: Refactor print-layout-test-times and add unit tests. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: tweak a bit to minimize diff Created 7 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/Scripts/print-layout-test-times ('k') | Tools/Scripts/webkitpy/common/system/systemhost_mock.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Tools/Scripts/webkitpy/common/system/systemhost.py
diff --git a/Tools/Scripts/webkitpy/common/system/systemhost.py b/Tools/Scripts/webkitpy/common/system/systemhost.py
index 3b4439ee4785bdc220ee72333179268499ad12a3..52b88d6fcc1d525a4ac3586c4a0e186a9942bd2a 100644
--- a/Tools/Scripts/webkitpy/common/system/systemhost.py
+++ b/Tools/Scripts/webkitpy/common/system/systemhost.py
@@ -43,3 +43,12 @@ class SystemHost(object):
def copy_current_environment(self):
return environment.Environment(os.environ.copy())
+
+ def print_(self, *args, **kwargs):
+ sep = kwargs.get('sep', ' ')
+ end = kwargs.get('end', '\n')
+ file = kwargs.get('file', None)
+ stderr = kwargs.get('stderr', False)
+
+ file = file or (sys.stderr if stderr else sys.stdout)
+ file.write(sep.join([str(arg) for arg in args]) + end)
« no previous file with comments | « Tools/Scripts/print-layout-test-times ('k') | Tools/Scripts/webkitpy/common/system/systemhost_mock.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698