mobile/internal/binres: skip test if ANDROID_HOME is unset
Change-Id: I68ac06ad2f56dcd15e325a039c4d5d22ee1f862f Reviewed-on: https://go-review.googlesource.com/20256 Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
This commit is contained in:
parent
ba0a725146
commit
94417f6861
@ -499,6 +499,10 @@ func TestTableRefByName(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestTableMarshal(t *testing.T) {
|
func TestTableMarshal(t *testing.T) {
|
||||||
|
sdkdir := os.Getenv("ANDROID_HOME")
|
||||||
|
if sdkdir == "" {
|
||||||
|
t.Skip("ANDROID_HOME env var not set")
|
||||||
|
}
|
||||||
tbl, err := OpenSDKTable()
|
tbl, err := OpenSDKTable()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user