diff options
Diffstat (limited to 'sdk/sdk_test.go')
-rw-r--r-- | sdk/sdk_test.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sdk/sdk_test.go b/sdk/sdk_test.go index 56be7417b..ef62b79ba 100644 --- a/sdk/sdk_test.go +++ b/sdk/sdk_test.go @@ -15,6 +15,9 @@ package sdk import ( + "android/soong/android" + "log" + "os" "testing" "github.com/google/blueprint/proptools" @@ -22,6 +25,12 @@ import ( // Needed in an _test.go file in this package to ensure tests run correctly, particularly in IDE. func TestMain(m *testing.M) { + if android.BuildOs != android.Linux { + // b/145598135 - Generating host snapshots for anything other than linux is not supported. + log.Printf("Skipping as sdk snapshot generation is only supported on %s not %s", android.Linux, android.BuildOs) + os.Exit(0) + } + runTestWithBuildDir(m) } |