summaryrefslogtreecommitdiff
path: root/python/python_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'python/python_test.go')
-rw-r--r--python/python_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/python/python_test.go b/python/python_test.go
index 3f719f8e5..bb407e465 100644
--- a/python/python_test.go
+++ b/python/python_test.go
@@ -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 {