Merge "Add TestingModule.VariablesForTestsRelativeToTop" am: 010bb3c5b3

Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1649791

Change-Id: I8839b3fa45ad01298a4fcc47772a0d238d32832d
This commit is contained in:
Paul Duffin
2021-03-23 08:53:29 +00:00
committed by Automerger Merge Worker

View File

@@ -776,6 +776,12 @@ func (m TestingModule) Module() Module {
return m.module
}
// VariablesForTestsRelativeToTop returns a copy of the Module.VariablesForTests() with every value
// having any temporary build dir usages replaced with paths relative to a notional top.
func (m TestingModule) VariablesForTestsRelativeToTop() map[string]string {
return normalizeStringMapRelativeToTop(m.config, m.module.VariablesForTests())
}
// TestingSingleton is wrapper around an android.Singleton that provides methods to find information about individual
// ctx.Build parameters for verification in tests.
type TestingSingleton struct {