Remove usages of FixtureFactory from misc packages
These packages have already been migrated to use per test build directory so have no need for a FixtureFactory. Bug: 183235980 Test: m nothing Change-Id: I667d1d992caaf0f615de91f89efdae11c44986c2
This commit is contained in:
@@ -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())
|
||||
}
|
||||
|
Reference in New Issue
Block a user