Fix the issue that /tmp/soong_python_test* isn't being removed.
am: aac67d38b2
Change-Id: I348801f343318e3a7e135087282db75ae4f88665
This commit is contained in:
commit
78a4dd0173
1 changed files with 3 additions and 3 deletions
|
@ -305,7 +305,7 @@ var (
|
||||||
|
|
||||||
func TestPythonModule(t *testing.T) {
|
func TestPythonModule(t *testing.T) {
|
||||||
config, buildDir := setupBuildEnv(t)
|
config, buildDir := setupBuildEnv(t)
|
||||||
defer tearDownBuildEnv()
|
defer tearDownBuildEnv(buildDir)
|
||||||
android.TestPreDepsMutators(func(ctx android.RegisterMutatorsContext) {
|
android.TestPreDepsMutators(func(ctx android.RegisterMutatorsContext) {
|
||||||
ctx.BottomUp("version_split", versionSplitMutator()).Parallel()
|
ctx.BottomUp("version_split", versionSplitMutator()).Parallel()
|
||||||
})
|
})
|
||||||
|
@ -432,8 +432,8 @@ func setupBuildEnv(t *testing.T) (config android.Config, buildDir string) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
func tearDownBuildEnv() {
|
func tearDownBuildEnv(buildDir string) {
|
||||||
os.RemoveAll(buildNamePrefix)
|
os.RemoveAll(buildDir)
|
||||||
}
|
}
|
||||||
|
|
||||||
func findModule(ctx *blueprint.Context, name, variant string) blueprint.Module {
|
func findModule(ctx *blueprint.Context, name, variant string) blueprint.Module {
|
||||||
|
|
Loading…
Reference in a new issue