Merge "Store order of the components used by the tests"

This commit is contained in:
Paul Duffin
2021-03-09 07:53:07 +00:00
committed by Gerrit Code Review

View File

@@ -378,9 +378,9 @@ func (ctx *TestContext) Register() {
ctx.singletons.registerAll(ctx.Context) ctx.singletons.registerAll(ctx.Context)
// Save the sorted components order away to make them easy to access while debugging. // Save the sorted components order away to make them easy to access while debugging.
ctx.preSingletonOrder = globalOrder.preSingletonOrder.namesInOrder ctx.preSingletonOrder = componentsToNames(preSingletons)
ctx.mutatorOrder = globalOrder.mutatorOrder.namesInOrder ctx.mutatorOrder = componentsToNames(mutators)
ctx.singletonOrder = globalOrder.singletonOrder.namesInOrder ctx.singletonOrder = componentsToNames(singletons)
} }
// RegisterForBazelConversion prepares a test context for bp2build conversion. // RegisterForBazelConversion prepares a test context for bp2build conversion.