diff options
author | 2025-02-12 22:42:20 -0800 | |
---|---|---|
committer | 2025-02-12 22:42:20 -0800 | |
commit | a17496cb5d6effeb341f6b95acd5a4d4735642bf (patch) | |
tree | 051c99c1fae6383de4b5d2785dbb7a00dd3571c3 /android/namespace_test.go | |
parent | 852f109a206ccc5fdd869de833a97e0d1b9a09a2 (diff) | |
parent | 8ea2abcb0ff0f2e23391dbde621d62c0980138e7 (diff) |
Merge "Don't panic in ModuleForTests and friends" into main am: 4a80748e09 am: 8ea2abcb0f
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3490133
Change-Id: If401bc7e4ed94f982391e49aa059015cbaecca5f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
Diffstat (limited to 'android/namespace_test.go')
-rw-r--r-- | android/namespace_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/android/namespace_test.go b/android/namespace_test.go index 0327e7824..a183bbf0d 100644 --- a/android/namespace_test.go +++ b/android/namespace_test.go @@ -683,7 +683,7 @@ func numDeps(result *TestResult, module TestingModule) int { } func getModule(result *TestResult, moduleName string) TestingModule { - return result.ModuleForTests(moduleName, "") + return result.ModuleForTests(result.fixture.t, moduleName, "") } func findModuleById(result *TestResult, id string) (module TestingModule) { @@ -691,7 +691,7 @@ func findModuleById(result *TestResult, id string) (module TestingModule) { testModule, ok := candidate.(*testModule) if ok { if testModule.properties.Id == id { - module = newTestingModule(result.config, testModule) + module = newTestingModule(result.fixture.t, result.config, testModule) } } } |