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
This commit is contained in:
@@ -15,7 +15,6 @@
|
||||
package java
|
||||
|
||||
import (
|
||||
"android/soong/android"
|
||||
"testing"
|
||||
)
|
||||
|
||||
@@ -58,7 +57,7 @@ func TestPlugin(t *testing.T) {
|
||||
}
|
||||
`)
|
||||
|
||||
buildOS := android.BuildOs.String()
|
||||
buildOS := ctx.Config().BuildOS.String()
|
||||
|
||||
javac := ctx.ModuleForTests("foo", "android_common").Rule("javac")
|
||||
turbine := ctx.ModuleForTests("foo", "android_common").MaybeRule("turbine")
|
||||
@@ -98,7 +97,7 @@ func TestPluginGeneratesApi(t *testing.T) {
|
||||
}
|
||||
`)
|
||||
|
||||
buildOS := android.BuildOs.String()
|
||||
buildOS := ctx.Config().BuildOS.String()
|
||||
|
||||
javac := ctx.ModuleForTests("foo", "android_common").Rule("javac")
|
||||
turbine := ctx.ModuleForTests("foo", "android_common").MaybeRule("turbine")
|
||||
|
Reference in New Issue
Block a user