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

Unified Diff: dart/tools/utils.py

Issue 84703004: Removed dart.gyp:upload_sdk target and tools/upload_sdk.py (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 1 month 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 | « dart/tools/upload_sdk.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/tools/utils.py
diff --git a/dart/tools/utils.py b/dart/tools/utils.py
index b582c9ee30ccf307b2171977020b5d952292ffff..7e62bd9b223a4aff5b53b3fb2100455644d42aee 100644
--- a/dart/tools/utils.py
+++ b/dart/tools/utils.py
@@ -443,6 +443,17 @@ def Touch(name):
os.utime(name, None)
+def ExecuteCommand(cmd):
+ """Execute a command in a subprocess."""
+ print 'Executing: ' + ' '.join(cmd)
+ pipe = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE,
+ shell=IsWindows())
+ output = pipe.communicate()
+ if pipe.returncode != 0:
+ raise Exception('Execution failed: ' + str(output))
+ return (pipe.returncode, output)
+
+
def DartBinary():
tools_dir = os.path.dirname(os.path.realpath(__file__))
dart_binary_prefix = os.path.join(tools_dir, 'testing', 'bin')
« no previous file with comments | « dart/tools/upload_sdk.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698