Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 46fc58ee authored by Paul Duffin's avatar Paul Duffin
Browse files

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
parent e06c84e1
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -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)
	}
}