aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorNan Zhang <nanzhang@google.com>2017-06-12 10:49:42 -0700
committerNan Zhang <nanzhang@google.com>2017-06-12 10:49:42 -0700
commitaac67d38b290e786f294b4c41c9f3a527efe7dda (patch)
treee2d51fd1dec21d4762338b3a52040f1113d850fb /python
parentf49082afab1651e120cbc2474873b38ba4078c20 (diff)
downloadbuild_soong-aac67d38b290e786f294b4c41c9f3a527efe7dda.tar.gz
build_soong-aac67d38b290e786f294b4c41c9f3a527efe7dda.tar.bz2
build_soong-aac67d38b290e786f294b4c41c9f3a527efe7dda.zip
Fix the issue that /tmp/soong_python_test* isn't being removed.
Bug: 62499851 Test: go test Change-Id: I84bd66cd1410dd9fc6add3ba5626d8ec4fe702d7
Diffstat (limited to 'python')
-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 3f719f8e..bb407e46 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 {