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

Unified Diff: third_party/typ/typ/host.py

Issue 660133004: Roll typ to v0.8.5 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 | « third_party/typ/typ/fakes/tests/host_fake_test.py ('k') | third_party/typ/typ/runner.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/typ/typ/host.py
diff --git a/third_party/typ/typ/host.py b/third_party/typ/typ/host.py
index 4859d9c12db963457c6a1a054bac432490d5dfc4..c5f6ac8c8d4c94f39bd8a10a1ed50534d2203866 100644
--- a/third_party/typ/typ/host.py
+++ b/third_party/typ/typ/host.py
@@ -48,6 +48,7 @@ class Host(object):
self.stderr = sys.stderr
self.stdin = sys.stdin
self.env = os.environ
+ self.platform = sys.platform
def abspath(self, *comps):
return os.path.abspath(self.join(*comps))
@@ -75,6 +76,10 @@ class Host(object):
# pylint type checking bug - pylint: disable=E1103
return proc.returncode, stdout.decode('utf-8'), stderr.decode('utf-8')
+ def call_inline(self, argv, env=None):
+ return subprocess.call(argv, stdin=self.stdin, stdout=self.stdout,
+ stderr=self.stderr, env=env)
+
def chdir(self, *comps):
return os.chdir(self.join(*comps))
« no previous file with comments | « third_party/typ/typ/fakes/tests/host_fake_test.py ('k') | third_party/typ/typ/runner.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698