diff options
Diffstat (limited to 'python/python_test.go')
-rw-r--r-- | python/python_test.go | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/python/python_test.go b/python/python_test.go index 23db24e8f..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) @@ -395,10 +395,11 @@ func expectModule(t *testing.T, ctx *android.TestContext, buildDir, name, varian if !reflect.DeepEqual(actualPyRunfiles, expectedPyRunfiles) { testErrs = append(testErrs, errors.New(fmt.Sprintf( - `binary "%s" variant "%s" has unexpected pyRunfiles: %q!`, + `binary "%s" variant "%s" has unexpected pyRunfiles: %q! (expected: %q)`, base.Name(), base.properties.Actual_version, - actualPyRunfiles))) + actualPyRunfiles, + expectedPyRunfiles))) } if base.srcsZip.String() != strings.Replace(expectedSrcsZip, "@prefix@", buildDir, 1) { |