Make android.check work

Review URL: https://chromiumcodereview.appspot.com/10779011
Patch from Haitao Feng <haitao.feng@intel.com>.

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@12101 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 7cb94437
...@@ -24,6 +24,7 @@ Dineel D Sule <dsule@codeaurora.org> ...@@ -24,6 +24,7 @@ Dineel D Sule <dsule@codeaurora.org>
Erich Ocean <erich.ocean@me.com> Erich Ocean <erich.ocean@me.com>
Fedor Indutny <fedor@indutny.com> Fedor Indutny <fedor@indutny.com>
Filipe David Manana <fdmanana@gmail.com> Filipe David Manana <fdmanana@gmail.com>
Haitao Feng <haitao.feng@intel.com>
Ioseb Dzmanashvili <ioseb.dzmanashvili@gmail.com> Ioseb Dzmanashvili <ioseb.dzmanashvili@gmail.com>
Jan de Mooij <jandemooij@gmail.com> Jan de Mooij <jandemooij@gmail.com>
Jay Freeman <saurik@saurik.com> Jay Freeman <saurik@saurik.com>
......
...@@ -91,9 +91,10 @@ def Main(): ...@@ -91,9 +91,10 @@ def Main():
android_workspace = os.getenv("ANDROID_V8", "/data/local/v8") android_workspace = os.getenv("ANDROID_V8", "/data/local/v8")
args = [Escape(arg) for arg in sys.argv[1:]] args = [Escape(arg) for arg in sys.argv[1:]]
script = (" ".join(args) + "\n" script = (" ".join(args) + "\n"
"if [ $? -ne 0 ]\n" "case $? in\n"
" then echo \"Error returned by test\";\n" " 0) break;;\n"
"fi\n") " *) echo \"Error returned by test\";;\n"
"esac\n")
script = script.replace(workspace, android_workspace) script = script.replace(workspace, android_workspace)
script_file = WriteToTemporaryFile(script) script_file = WriteToTemporaryFile(script)
android_script_file = android_workspace + "/" + script_file android_script_file = android_workspace + "/" + script_file
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment