summaryrefslogtreecommitdiff
path: root/python/python_test.go
diff options
context:
space:
mode:
author Treehugger Robot <treehugger-gerrit@google.com> 2020-11-14 05:58:58 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2020-11-14 05:58:58 +0000
commitceed6be00d486bd068a82342b80997309ed26cd3 (patch)
treeef78eafab922cbe1a4ceded6201f23eab8d11bf9 /python/python_test.go
parent33e7f6a0cadbb09732405dfc33c4fac431fba0ca (diff)
parentae8600b507416192f5134dfc068cd0eea4c4dc9e (diff)
Merge "Pass Config to NewTestContext instead of ctx.Register"
Diffstat (limited to 'python/python_test.go')
-rw-r--r--python/python_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/python_test.go b/python/python_test.go
index 10b565ae8..64bc4f6b8 100644
--- a/python/python_test.go
+++ b/python/python_test.go
@@ -329,13 +329,13 @@ func TestPythonModule(t *testing.T) {
for _, d := range data {
t.Run(d.desc, func(t *testing.T) {
config := android.TestConfig(buildDir, nil, "", d.mockFiles)
- ctx := android.NewTestContext()
+ ctx := android.NewTestContext(config)
ctx.PreDepsMutators(RegisterPythonPreDepsMutators)
ctx.RegisterModuleType("python_library_host", PythonLibraryHostFactory)
ctx.RegisterModuleType("python_binary_host", PythonBinaryHostFactory)
ctx.RegisterModuleType("python_defaults", defaultsFactory)
ctx.PreArchMutators(android.RegisterDefaultsPreArchMutators)
- ctx.Register(config)
+ ctx.Register()
_, testErrs := ctx.ParseBlueprintsFiles(bpFile)
android.FailIfErrored(t, testErrs)
_, actErrs := ctx.PrepareBuildActions(config)