Separate the collation of mutators from registration

This separates the collation of mutators from the registration of them
to allow the test infrastructure to sort the mutator order to match
that used at runtime.

Bug: 181953909
Test: m nothing
Change-Id: I01a073289d44417f327b0815c09eb1c033d464f2
This commit is contained in:
Paul Duffin
2021-03-06 13:28:13 +00:00
parent 1d2d42f8e9
commit c05b034e95
3 changed files with 13 additions and 4 deletions

View File

@@ -188,7 +188,8 @@ func (ctx *Context) Register() {
singletons.registerAll(ctx)
registerMutators(ctx, preArch, preDeps, postDeps, finalDeps)
mutators := collateGloballyRegisteredMutators()
mutators.registerAll(ctx)
ctx.RegisterSingletonType("bazeldeps", SingletonFactoryAdaptor(ctx, BazelSingleton))