summaryrefslogtreecommitdiff
path: root/android/package_test.go
diff options
context:
space:
mode:
author Paul Duffin <paulduffin@google.com> 2020-01-14 12:15:29 +0000
committer Paul Duffin <paulduffin@google.com> 2020-01-15 11:17:57 +0000
commitc132742c963ed5501c82deb09a7e7c624dbafd44 (patch)
tree047c8b9c8e293379371eecb3e0b12c7be36b17cc /android/package_test.go
parenta80ef84652eda6dbb14a0bec358e7213e3b2dd09 (diff)
Dedup package build components registration
Bug: 146540677 Test: m nothing Change-Id: Iff2d7063b7f06313e9068c61a5627229463c98dd
Diffstat (limited to 'android/package_test.go')
-rw-r--r--android/package_test.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/android/package_test.go b/android/package_test.go
index bc66928ce..4710e3954 100644
--- a/android/package_test.go
+++ b/android/package_test.go
@@ -87,8 +87,7 @@ func testPackage(fs map[string][]byte) (*TestContext, []error) {
config := TestArchConfig(buildDir, nil, "", fs)
ctx := NewTestArchContext()
- ctx.RegisterModuleType("package", PackageFactory)
- ctx.PreArchMutators(RegisterPackageRenamer)
+ RegisterPackageBuildComponents(ctx)
ctx.Register(config)
_, errs := ctx.ParseBlueprintsFiles(".")