aboutsummaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorAlexander Ivchenko <alexander.ivchenko@intel.com>2013-11-19 09:21:08 -0700
committerRob Savoye <rob@welcomehome.org>2013-11-19 09:21:08 -0700
commitbcc1f7e6ef8d1cb497f69924c39f454b9ea3583c (patch)
treecaf83fa83e7c70b90a574910ea6dfadef6dfa50b /config
parent19449c886eb3a4224518e1d3d42b7cb7a58cfe9b (diff)
downloaddejagnu-bcc1f7e6ef8d1cb497f69924c39f454b9ea3583c.zip
dejagnu-bcc1f7e6ef8d1cb497f69924c39f454b9ea3583c.tar.gz
dejagnu-bcc1f7e6ef8d1cb497f69924c39f454b9ea3583c.tar.bz2
Improve ADB support for Android
Diffstat (limited to 'config')
-rw-r--r--config/adb.exp6
1 files changed, 4 insertions, 2 deletions
diff --git a/config/adb.exp b/config/adb.exp
index a679e6a..b5e5d6c 100644
--- a/config/adb.exp
+++ b/config/adb.exp
@@ -128,7 +128,7 @@ proc adb_file {dest op args} {
}
proc adb_upload {desthost srcfile destfile} {
- set status [catch "exec adb [adb_serial] pull $srcfile $destfile" output]
+ set status [catch "exec adb [adb_serial] pull $srcfile $destfile |& cat" output]
if { $status == 0 } {
verbose "Copied $srcfile to $destfile" 2
return $destfile
@@ -165,7 +165,9 @@ proc adb_exec { boardname cmd args } {
verbose "Executing $boardname:$cmd $pargs < $inp "
- set status [catch "exec cat $inp | adb [adb_serial] shell \( $cmd $pargs \) \\; echo XYZ\\\$\\\{\?\\\}ZYX |& cat" output]
+ # Execute commands only from temporary folder, therefore do "cd" first
+ global android_tmp_dir
+ set status [catch "exec cat $inp | adb [adb_serial] shell cd $android_tmp_dir \&\& \( $cmd $pargs \) \\; echo XYZ\\\$\\\{\?\\\}ZYX |& cat" output]
# `status' doesn't mean much here other than adb worked ok.
# What we want is whether $cmd ran ok.