diff options
author | Colin Cross <ccross@android.com> | 2019-11-20 17:12:35 -0800 |
---|---|---|
committer | Colin Cross <ccross@android.com> | 2019-12-17 14:45:11 -0800 |
commit | fb0c16e95a559e582911834d4fd7621c012fa831 (patch) | |
tree | 24d47d6476c4d9c3a387c32b110af5db2c1fefb6 /android/paths_test.go | |
parent | bd0624304e37a5d602740c1eb3a2a717536e03ce (diff) | |
download | build_soong-fb0c16e95a559e582911834d4fd7621c012fa831.tar.gz build_soong-fb0c16e95a559e582911834d4fd7621c012fa831.tar.bz2 build_soong-fb0c16e95a559e582911834d4fd7621c012fa831.zip |
Move imageMutator before archMutator
Run the imageMutator between osMutator and archMutator so that
different arch variants can be set for the different partitions.
Bug: 142286466
Test: m checkbuild
Change-Id: I65d05714b75aa462bf9816da60fdc2deda4de593
Merged-In: I65d05714b75aa462bf9816da60fdc2deda4de593
(cherry picked from commit 9c8f687584986f6e36ebfdbda22c3cc6c21cf02d)
Diffstat (limited to 'android/paths_test.go')
-rw-r--r-- | android/paths_test.go | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/android/paths_test.go b/android/paths_test.go index 1d8afa9c..a8560a1c 100644 --- a/android/paths_test.go +++ b/android/paths_test.go @@ -257,6 +257,7 @@ func TestPathForModuleInstall(t *testing.T) { name: "host binary", ctx: &moduleInstallPathContextImpl{ baseModuleContext: baseModuleContext{ + os: hostTarget.Os, target: hostTarget, }, }, @@ -268,6 +269,7 @@ func TestPathForModuleInstall(t *testing.T) { name: "system binary", ctx: &moduleInstallPathContextImpl{ baseModuleContext: baseModuleContext{ + os: deviceTarget.Os, target: deviceTarget, }, }, @@ -278,6 +280,7 @@ func TestPathForModuleInstall(t *testing.T) { name: "vendor binary", ctx: &moduleInstallPathContextImpl{ baseModuleContext: baseModuleContext{ + os: deviceTarget.Os, target: deviceTarget, kind: socSpecificModule, }, @@ -289,6 +292,7 @@ func TestPathForModuleInstall(t *testing.T) { name: "odm binary", ctx: &moduleInstallPathContextImpl{ baseModuleContext: baseModuleContext{ + os: deviceTarget.Os, target: deviceTarget, kind: deviceSpecificModule, }, @@ -300,6 +304,7 @@ func TestPathForModuleInstall(t *testing.T) { name: "product binary", ctx: &moduleInstallPathContextImpl{ baseModuleContext: baseModuleContext{ + os: deviceTarget.Os, target: deviceTarget, kind: productSpecificModule, }, @@ -311,6 +316,7 @@ func TestPathForModuleInstall(t *testing.T) { name: "system_ext binary", ctx: &moduleInstallPathContextImpl{ baseModuleContext: baseModuleContext{ + os: deviceTarget.Os, target: deviceTarget, kind: systemExtSpecificModule, }, @@ -322,6 +328,7 @@ func TestPathForModuleInstall(t *testing.T) { name: "root binary", ctx: &moduleInstallPathContextImpl{ baseModuleContext: baseModuleContext{ + os: deviceTarget.Os, target: deviceTarget, }, inRoot: true, @@ -333,6 +340,7 @@ func TestPathForModuleInstall(t *testing.T) { name: "recovery binary", ctx: &moduleInstallPathContextImpl{ baseModuleContext: baseModuleContext{ + os: deviceTarget.Os, target: deviceTarget, }, inRecovery: true, @@ -344,6 +352,7 @@ func TestPathForModuleInstall(t *testing.T) { name: "recovery root binary", ctx: &moduleInstallPathContextImpl{ baseModuleContext: baseModuleContext{ + os: deviceTarget.Os, target: deviceTarget, }, inRecovery: true, @@ -357,6 +366,7 @@ func TestPathForModuleInstall(t *testing.T) { name: "system native test binary", ctx: &moduleInstallPathContextImpl{ baseModuleContext: baseModuleContext{ + os: deviceTarget.Os, target: deviceTarget, }, inData: true, @@ -368,6 +378,7 @@ func TestPathForModuleInstall(t *testing.T) { name: "vendor native test binary", ctx: &moduleInstallPathContextImpl{ baseModuleContext: baseModuleContext{ + os: deviceTarget.Os, target: deviceTarget, kind: socSpecificModule, }, @@ -380,6 +391,7 @@ func TestPathForModuleInstall(t *testing.T) { name: "odm native test binary", ctx: &moduleInstallPathContextImpl{ baseModuleContext: baseModuleContext{ + os: deviceTarget.Os, target: deviceTarget, kind: deviceSpecificModule, }, @@ -392,6 +404,7 @@ func TestPathForModuleInstall(t *testing.T) { name: "product native test binary", ctx: &moduleInstallPathContextImpl{ baseModuleContext: baseModuleContext{ + os: deviceTarget.Os, target: deviceTarget, kind: productSpecificModule, }, @@ -405,6 +418,7 @@ func TestPathForModuleInstall(t *testing.T) { name: "system_ext native test binary", ctx: &moduleInstallPathContextImpl{ baseModuleContext: baseModuleContext{ + os: deviceTarget.Os, target: deviceTarget, kind: systemExtSpecificModule, }, @@ -418,6 +432,7 @@ func TestPathForModuleInstall(t *testing.T) { name: "sanitized system binary", ctx: &moduleInstallPathContextImpl{ baseModuleContext: baseModuleContext{ + os: deviceTarget.Os, target: deviceTarget, }, inSanitizerDir: true, @@ -429,6 +444,7 @@ func TestPathForModuleInstall(t *testing.T) { name: "sanitized vendor binary", ctx: &moduleInstallPathContextImpl{ baseModuleContext: baseModuleContext{ + os: deviceTarget.Os, target: deviceTarget, kind: socSpecificModule, }, @@ -441,6 +457,7 @@ func TestPathForModuleInstall(t *testing.T) { name: "sanitized odm binary", ctx: &moduleInstallPathContextImpl{ baseModuleContext: baseModuleContext{ + os: deviceTarget.Os, target: deviceTarget, kind: deviceSpecificModule, }, @@ -453,6 +470,7 @@ func TestPathForModuleInstall(t *testing.T) { name: "sanitized product binary", ctx: &moduleInstallPathContextImpl{ baseModuleContext: baseModuleContext{ + os: deviceTarget.Os, target: deviceTarget, kind: productSpecificModule, }, @@ -466,6 +484,7 @@ func TestPathForModuleInstall(t *testing.T) { name: "sanitized system_ext binary", ctx: &moduleInstallPathContextImpl{ baseModuleContext: baseModuleContext{ + os: deviceTarget.Os, target: deviceTarget, kind: systemExtSpecificModule, }, @@ -479,6 +498,7 @@ func TestPathForModuleInstall(t *testing.T) { name: "sanitized system native test binary", ctx: &moduleInstallPathContextImpl{ baseModuleContext: baseModuleContext{ + os: deviceTarget.Os, target: deviceTarget, }, inData: true, @@ -491,6 +511,7 @@ func TestPathForModuleInstall(t *testing.T) { name: "sanitized vendor native test binary", ctx: &moduleInstallPathContextImpl{ baseModuleContext: baseModuleContext{ + os: deviceTarget.Os, target: deviceTarget, kind: socSpecificModule, }, @@ -504,6 +525,7 @@ func TestPathForModuleInstall(t *testing.T) { name: "sanitized odm native test binary", ctx: &moduleInstallPathContextImpl{ baseModuleContext: baseModuleContext{ + os: deviceTarget.Os, target: deviceTarget, kind: deviceSpecificModule, }, @@ -517,6 +539,7 @@ func TestPathForModuleInstall(t *testing.T) { name: "sanitized product native test binary", ctx: &moduleInstallPathContextImpl{ baseModuleContext: baseModuleContext{ + os: deviceTarget.Os, target: deviceTarget, kind: productSpecificModule, }, @@ -530,6 +553,7 @@ func TestPathForModuleInstall(t *testing.T) { name: "sanitized system_ext native test binary", ctx: &moduleInstallPathContextImpl{ baseModuleContext: baseModuleContext{ + os: deviceTarget.Os, target: deviceTarget, kind: systemExtSpecificModule, }, |