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

Unified Diff: tools/android-run.py

Issue 2070323002: Bug fix: android-run.py (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Error loading file Created 4 years, 6 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/android-run.py
diff --git a/tools/android-run.py b/tools/android-run.py
index dc1359883a17dec7bcc7739cba4f3b23c1798a63..4765f86b4c06ec47f5149c5c53a622d422e64f15 100755
--- a/tools/android-run.py
+++ b/tools/android-run.py
@@ -88,7 +88,8 @@ def Main():
print("Usage: %s <command-to-run-on-device>" % sys.argv[0])
return 1
workspace = abspath(join(dirname(sys.argv[0]), '..'))
- android_workspace = os.getenv("ANDROID_V8", "/data/local/tmp/v8")
+ v8_root = "/data/local/tmp/v8"
+ android_workspace = os.getenv("ANDROID_V8", v8_root)
args = [Escape(arg) for arg in sys.argv[1:]]
script = (" ".join(args) + "\n"
"case $? in\n"
@@ -99,7 +100,7 @@ def Main():
script_file = WriteToTemporaryFile(script)
android_script_file = android_workspace + "/" + script_file
command = ("adb push '%s' %s;" % (script_file, android_script_file) +
- "adb shell 'sh %s';" % android_script_file +
+ "adb shell 'cd %s && sh %s';" % (v8_root, android_script_file) +
"adb shell 'rm %s'" % android_script_file)
error_code = Execute(command)
os.unlink(script_file)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698