Dedup package build components registration

Bug: 146540677
Test: m nothing
Change-Id: Iff2d7063b7f06313e9068c61a5627229463c98dd
This commit is contained in:
Paul Duffin
2020-01-14 12:15:29 +00:00
parent a80ef84652
commit c132742c96
4 changed files with 16 additions and 8 deletions

View File

@@ -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(".")