diff options
Diffstat (limited to 'android/android_test.go')
-rw-r--r-- | android/android_test.go | 24 |
1 files changed, 1 insertions, 23 deletions
diff --git a/android/android_test.go b/android/android_test.go index 46b705468..fb82e3765 100644 --- a/android/android_test.go +++ b/android/android_test.go @@ -15,32 +15,10 @@ package android import ( - "io/ioutil" "os" "testing" ) -var buildDir string - -func setUp() { - var err error - buildDir, err = ioutil.TempDir("", "soong_android_test") - if err != nil { - panic(err) - } -} - -func tearDown() { - os.RemoveAll(buildDir) -} - func TestMain(m *testing.M) { - run := func() int { - setUp() - defer tearDown() - - return m.Run() - } - - os.Exit(run()) + os.Exit(m.Run()) } |