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

Unified Diff: build/android/pylib/cmd_helper.py

Issue 11312239: Modify the Android test running scripts so they can be used from WebKit (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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
Index: build/android/pylib/cmd_helper.py
diff --git a/build/android/pylib/cmd_helper.py b/build/android/pylib/cmd_helper.py
index 46b6981195ebcecf9b2ed43c1d13eace39d4b00a..6fbf2654503463135a8c8c342dcd49a96797cb0c 100644
--- a/build/android/pylib/cmd_helper.py
+++ b/build/android/pylib/cmd_helper.py
@@ -4,10 +4,11 @@
"""A wrapper for subprocess to make calling shell commands easier."""
-
+import os
import logging
import subprocess
+import constants
def RunCmd(args, cwd=None):
"""Opens a subprocess to execute a program and returns its return value.
@@ -65,3 +66,6 @@ def GetCmdStatusAndOutput(args, cwd=None, shell=False):
logging.critical(stderr)
logging.info(stdout[:4096]) # Truncate output longer than 4k.
return (exit_code, stdout)
+
+def OutDirectory():
+ return os.environ.get('ANDROID_TEST_OUT_DIRECTORY', constants.CHROME_DIR)
bulach 2012/11/15 01:06:39 sorry, when I mentioned to use an environment vari
Peter Beverloo 2012/11/15 12:11:29 Seems good to me, thank you! Done. In general we'r

Powered by Google App Engine
This is Rietveld 408576698