Fix the issue that /tmp/soong_python_test* isn't being removed. am: aac67d38b2

am: 78a4dd0173

Change-Id: I3eb91407ea3f4cf9f45ec91206cf448d6241a1f6
This commit is contained in:
Nan Zhang 2017-06-12 19:59:53 +00:00 committed by android-build-merger
commit b128d27b65

View file

@ -305,7 +305,7 @@ var (
func TestPythonModule(t *testing.T) {
config, buildDir := setupBuildEnv(t)
defer tearDownBuildEnv()
defer tearDownBuildEnv(buildDir)
android.TestPreDepsMutators(func(ctx android.RegisterMutatorsContext) {
ctx.BottomUp("version_split", versionSplitMutator()).Parallel()
})
@ -432,8 +432,8 @@ func setupBuildEnv(t *testing.T) (config android.Config, buildDir string) {
return
}
func tearDownBuildEnv() {
os.RemoveAll(buildNamePrefix)
func tearDownBuildEnv(buildDir string) {
os.RemoveAll(buildDir)
}
func findModule(ctx *blueprint.Context, name, variant string) blueprint.Module {