diff options
author | 2021-03-22 10:09:02 +0000 | |
---|---|---|
committer | 2021-03-22 22:09:53 +0000 | |
commit | 709e0e32c2a828194bf8211b84fbed7ff102667e (patch) | |
tree | 121fc1eb6c76c96e73b89505dad8b866e42acfa4 /android/namespace_test.go | |
parent | 4e6e35c561aca19e2176a2ef80595612b6c2f0a1 (diff) |
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
Diffstat (limited to 'android/namespace_test.go')
-rw-r--r-- | android/namespace_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
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) } } } |