Browse Source

internal/driver: ignore temp dir error on Android (#295)

On an instance of the Android emulator running x86_64, $HOME points
to / which is not writable. Add Android to the list of GOOS where
the temp dir error is skipped.

Fixes the android/amd64 and android/386 builders on build.golang.org.
Elias Naur 7 years ago
parent
commit
0138a3cd6d
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      internal/driver/fetch_test.go

+ 3
- 1
internal/driver/fetch_test.go View File

412
 		Symbolize: "remote",
412
 		Symbolize: "remote",
413
 	}
413
 	}
414
 	rx := "Saved profile in"
414
 	rx := "Saved profile in"
415
-	if runtime.GOOS == "darwin" && (runtime.GOARCH == "arm" || runtime.GOARCH == "arm64") {
415
+	if runtime.GOOS == "darwin" && (runtime.GOARCH == "arm" || runtime.GOARCH == "arm64") ||
416
+		runtime.GOOS == "android" {
416
 		// On iOS, $HOME points to the app root directory and is not writable.
417
 		// On iOS, $HOME points to the app root directory and is not writable.
418
+		// On Android, $HOME points to / which is not writable.
417
 		rx += "|Could not use temp dir"
419
 		rx += "|Could not use temp dir"
418
 	}
420
 	}
419
 	o := &plugin.Options{
421
 	o := &plugin.Options{