summaryrefslogtreecommitdiff
path: root/java/dexpreopt_test.go
diff options
context:
space:
mode:
author Colin Cross <ccross@android.com> 2021-07-20 09:47:41 -0700
committer Colin Cross <ccross@android.com> 2021-07-20 12:46:48 -0700
commit0c66bc615b399d2201b15b4c9052066db04a3f5e (patch)
treebe8334e4662f4bf137d2231dc92755e44fc85d5e /java/dexpreopt_test.go
parentae86338676084cf5966adf99f34e7086f9687edc (diff)
Replace android.BuildOs with Config.BuildOS
Replace the android.BuildOs constant with Config.BuildOS so that it can vary based on the product config. Bug: 190084016 Test: all Soong tests Change-Id: Ia67f872d8b2ab788747a22e3a9659dc21c9775cd
Diffstat (limited to 'java/dexpreopt_test.go')
-rw-r--r--java/dexpreopt_test.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/java/dexpreopt_test.go b/java/dexpreopt_test.go
index b25deceac..8dc7b798a 100644
--- a/java/dexpreopt_test.go
+++ b/java/dexpreopt_test.go
@@ -16,6 +16,7 @@ package java
import (
"fmt"
+ "runtime"
"testing"
"android/soong/android"
@@ -173,9 +174,9 @@ func enabledString(enabled bool) string {
}
func TestDex2oatToolDeps(t *testing.T) {
- if android.BuildOs != android.Linux {
+ if runtime.GOOS != "linux" {
// The host binary paths checked below are build OS dependent.
- t.Skipf("Unsupported build OS %s", android.BuildOs)
+ t.Skipf("Unsupported build OS %s", runtime.GOOS)
}
preparers := android.GroupFixturePreparers(