summaryrefslogtreecommitdiff
path: root/android/sh_binary_test.go
diff options
context:
space:
mode:
author Colin Cross <ccross@android.com> 2019-06-10 14:32:38 -0700
committer Colin Cross <ccross@android.com> 2019-06-10 15:51:06 -0700
commit2ffb9a8d7d334a17b779d1b96f1db1d001298aa0 (patch)
tree7d132e857668a76b5b2eb4f672dd0d82c0621f3c /android/sh_binary_test.go
parent6c4f21f3a14dbd05d5fb36067c8175f54887b689 (diff)
Share buildDir for android/soong/android tests
There is no need to create a separate buildDir for each test file, use TestMain to create a global one for the package. Test: all soong tests Change-Id: I435ee7aa88b7e0bb8ccc1ba79f82833a7accf3e9
Diffstat (limited to 'android/sh_binary_test.go')
-rw-r--r--android/sh_binary_test.go8
1 files changed, 0 insertions, 8 deletions
diff --git a/android/sh_binary_test.go b/android/sh_binary_test.go
index becb35a21..c99e18c3e 100644
--- a/android/sh_binary_test.go
+++ b/android/sh_binary_test.go
@@ -1,19 +1,11 @@
package android
import (
- "io/ioutil"
- "os"
"reflect"
"testing"
)
func testShBinary(t *testing.T, bp string) (*TestContext, Config) {
- buildDir, err := ioutil.TempDir("", "soong_sh_binary_test")
- if err != nil {
- t.Fatal(err)
- }
- defer os.RemoveAll(buildDir)
-
config := TestArchConfig(buildDir, nil)
ctx := NewTestArchContext()