From 709e0e32c2a828194bf8211b84fbed7ff102667e Mon Sep 17 00:00:00 2001 From: Paul Duffin Date: Mon, 22 Mar 2021 10:09:02 +0000 Subject: Add TestingBuildParams.RelativeToTop() The methods returns a copy of TestingBuildParams with every usage of a path that is relative to the temporary test build directory with a path relative to a notional top. Similar to how PathRelativeToTop does. Bug: 182885307 Test: m nothing Change-Id: I6ec20fc52ed76748138f0d48b4df80f765dfcfdc --- android/namespace_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'android/namespace_test.go') diff --git a/android/namespace_test.go b/android/namespace_test.go index 604b3567e..08e221a65 100644 --- a/android/namespace_test.go +++ b/android/namespace_test.go @@ -697,7 +697,7 @@ func findModuleById(ctx *TestContext, id string) (module TestingModule) { testModule, ok := candidate.(*testModule) if ok { if testModule.properties.Id == id { - module = newTestingModule(testModule) + module = newTestingModule(ctx.config, testModule) } } } -- cgit v1.2.3-59-g8ed1b