Fix tests that are broken on darwin builds.

Bug: 292141694
Test: m nothing --no-skip-soong-tests
Change-Id: Ie9a2f8961a8c43bbe1388471fc0d7aadc1456c57
This commit is contained in:
Jeff Sharkey
2023-11-06 13:56:38 -07:00
parent 32eb1338f0
commit a45bf7f254

View File

@@ -15,6 +15,7 @@
package java
import (
"runtime"
"testing"
"android/soong/android"
@@ -56,6 +57,10 @@ var prepareRavenwoodRuntime = android.GroupFixturePreparers(
var installPathPrefix = "out/soong/host/linux-x86/testcases"
func TestRavenwoodRuntime(t *testing.T) {
if runtime.GOOS != "linux" {
t.Skip("requires linux")
}
ctx := android.GroupFixturePreparers(
PrepareForIntegrationTestWithJava,
prepareRavenwoodRuntime,
@@ -75,6 +80,10 @@ func TestRavenwoodRuntime(t *testing.T) {
}
func TestRavenwoodTest(t *testing.T) {
if runtime.GOOS != "linux" {
t.Skip("requires linux")
}
ctx := android.GroupFixturePreparers(
PrepareForIntegrationTestWithJava,
prepareRavenwoodRuntime,