diff options
Diffstat (limited to 'python/python_test.go')
-rw-r--r-- | python/python_test.go | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/python/python_test.go b/python/python_test.go index 6263c8a25..f57f504d7 100644 --- a/python/python_test.go +++ b/python/python_test.go @@ -335,13 +335,12 @@ func TestPythonModule(t *testing.T) { } t.Run(d.desc, func(t *testing.T) { - result := emptyFixtureFactory. - ExtendWithErrorHandler(android.FixtureExpectsAllErrorsToMatchAPattern(errorPatterns)). - RunTest(t, - android.PrepareForTestWithDefaults, - PrepareForTestWithPythonBuildComponents, - d.mockFiles.AddToFixture(), - ) + result := android.GroupFixturePreparers( + android.PrepareForTestWithDefaults, + PrepareForTestWithPythonBuildComponents, + d.mockFiles.AddToFixture(), + ).ExtendWithErrorHandler(android.FixtureExpectsAllErrorsToMatchAPattern(errorPatterns)). + RunTest(t) if len(result.Errs) > 0 { return @@ -376,8 +375,6 @@ func expectModule(t *testing.T, ctx *android.TestContext, name, variant, expecte android.AssertPathsRelativeToTopEquals(t, "depsSrcsZips", expectedDepsSrcsZips, base.depsSrcsZips) } -var emptyFixtureFactory = android.NewFixtureFactory(nil) - func TestMain(m *testing.M) { os.Exit(m.Run()) } |