summaryrefslogtreecommitdiff
path: root/sdk/sdk_test.go
diff options
context:
space:
mode:
author Paul Duffin <paulduffin@google.com> 2019-12-03 15:40:55 +0000
committer Paul Duffin <paulduffin@google.com> 2019-12-04 10:15:40 +0000
commit46fc58ee8d151200b12e595f9edf1d8b57f40b42 (patch)
tree76707d4c21dca251a777ba921136888899024154 /sdk/sdk_test.go
parente06c84e103f9ece3a52c4879de48cb868eb0c32a (diff)
Disable TestHostSnapshot test for non-linux build
Building sdk snapshots on anything other than linux glibc is not supported at the moment. Bug: 145598135 Test: m nothing Change-Id: I34155252545e9f37c5361ed94a27a87024fcece2
Diffstat (limited to 'sdk/sdk_test.go')
-rw-r--r--sdk/sdk_test.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/sdk/sdk_test.go b/sdk/sdk_test.go
index 6b92d2761..5435ef658 100644
--- a/sdk/sdk_test.go
+++ b/sdk/sdk_test.go
@@ -597,6 +597,9 @@ sdk_snapshot {
}
func TestHostSnapshot(t *testing.T) {
+ // b/145598135 - Generating host snapshots for anything other than linux is not supported.
+ SkipIfNotLinux(t)
+
ctx, config := testSdk(t, `
sdk {
name: "mysdk",
@@ -820,3 +823,10 @@ func TestMain(m *testing.M) {
os.Exit(run())
}
+
+func SkipIfNotLinux(t *testing.T) {
+ t.Helper()
+ if android.BuildOs != android.Linux {
+ t.Skipf("Skipping as sdk snapshot generation is only supported on %s not %s", android.Linux, android.BuildOs)
+ }
+}