Remove ioutil.TempDir from each android/soong/android test
android_test.go already sets up a global buildDir, no need to create one in each test. Test: All soong tests Change-Id: Ib85cbf78c604ad3cef64aa00b6bd812a81496e9e
This commit is contained in:
@@ -15,8 +15,6 @@
|
||||
package android
|
||||
|
||||
import (
|
||||
"io/ioutil"
|
||||
"os"
|
||||
"reflect"
|
||||
"testing"
|
||||
)
|
||||
@@ -85,12 +83,6 @@ func TestPathDepsMutator(t *testing.T) {
|
||||
},
|
||||
}
|
||||
|
||||
buildDir, err := ioutil.TempDir("", "soong_path_properties_test")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
defer os.RemoveAll(buildDir)
|
||||
|
||||
for _, test := range tests {
|
||||
t.Run(test.name, func(t *testing.T) {
|
||||
config := TestArchConfig(buildDir, nil)
|
||||
|
Reference in New Issue
Block a user