From: Elias Naur Date: Thu, 28 Feb 2019 07:40:55 +0000 (+0100) Subject: misc/android: adb push --sync testdata X-Git-Tag: go1.13beta1~1290 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=60abc07113e66873d468f54bb5be09fbdd20ca07;p=gostls13.git misc/android: adb push --sync testdata (A stripped down version of) $GOROOT is uploaded to the device before running standar library tests, including many (all?) testdata directories. Use the --sync flag when pushing testdata directories to the device in case it is already present. Change-Id: If8104f9d15838c1be3623adcf831a7188303c376 Reviewed-on: https://go-review.googlesource.com/c/164338 Reviewed-by: Brad Fitzpatrick --- diff --git a/misc/android/go_android_exec.go b/misc/android/go_android_exec.go index 845ed6e99c..55461df31a 100644 --- a/misc/android/go_android_exec.go +++ b/misc/android/go_android_exec.go @@ -104,7 +104,7 @@ func main() { run("push", os.Args[1], deviceBin) if _, err := os.Stat("testdata"); err == nil { - run("push", "testdata", deviceCwd) + run("push", "--sync", "testdata", deviceCwd) } // Forward SIGQUIT from the go command to show backtraces from