]> Cypherpunks repositories - gostls13.git/commitdiff
misc/android: adb push --sync testdata
authorElias Naur <mail@eliasnaur.com>
Thu, 28 Feb 2019 07:40:55 +0000 (08:40 +0100)
committerElias Naur <mail@eliasnaur.com>
Fri, 1 Mar 2019 06:04:29 +0000 (06:04 +0000)
(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 <bradfitz@golang.org>
misc/android/go_android_exec.go

index 845ed6e99cbfe2535f28f2ccf9fb46a6a376da59..55461df31aa8f2fd0ec793b6faa1804ac27f6f9a 100644 (file)
@@ -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