aboutsummaryrefslogtreecommitdiff
path: root/src/androidtest.bash
diff options
context:
space:
mode:
authorHyang-Ah (Hana) Kim <hyangah@gmail.com>2015-02-13 15:31:00 -0500
committerHyang-Ah Hana Kim <hyangah@gmail.com>2015-02-13 21:16:25 +0000
commit69937d213192b1a87d6ca8a71337b7aa05f3566e (patch)
tree91a4fca419f473f1ddc6e09530c6e0441cce9160 /src/androidtest.bash
parent855145d5c03c4b4faf60736c38d7a299c682af4a (diff)
downloadgo-69937d213192b1a87d6ca8a71337b7aa05f3566e.tar.xz
androidtest.bash: remove use of cp --preserve.
--preserve flag is not a valid flag for some versions of cp. Change-Id: I57f5bf21cbe726057fdadcd55b040ef7ff5d7479 Reviewed-on: https://go-review.googlesource.com/4835 Reviewed-by: David Crawshaw <crawshaw@golang.org>
Diffstat (limited to 'src/androidtest.bash')
-rwxr-xr-xsrc/androidtest.bash6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/androidtest.bash b/src/androidtest.bash
index 4968a00f6e..ee97e30d58 100755
--- a/src/androidtest.bash
+++ b/src/androidtest.bash
@@ -44,9 +44,9 @@ GOOS=$GOHOSTOS GOARCH=$GOHOSTARCH go build \
export ANDROID_PRODUCT_OUT=/tmp/androidtest-$$
FAKE_GOROOT=$ANDROID_PRODUCT_OUT/data/local/tmp/goroot
mkdir -p $FAKE_GOROOT
-cp -R --preserve=all "${GOROOT}/src" "${FAKE_GOROOT}/"
-cp -R --preserve=all "${GOROOT}/test" "${FAKE_GOROOT}/"
-cp -R --preserve=all "${GOROOT}/lib" "${FAKE_GOROOT}/"
+cp -a "${GOROOT}/src" "${FAKE_GOROOT}/"
+cp -a "${GOROOT}/test" "${FAKE_GOROOT}/"
+cp -a "${GOROOT}/lib" "${FAKE_GOROOT}/"
echo '# Syncing test files to android device'
time adb sync data &> /dev/null
echo ''