diff options
author | 2020-09-18 14:25:31 -0700 | |
---|---|---|
committer | 2020-10-06 15:12:22 -0700 | |
commit | 323dc60712491c71ccdc5363c42df61f0a192487 (patch) | |
tree | 5ba86007fb0f7d2536671cbc64e91b1eac304270 /sh/sh_binary_test.go | |
parent | 56a8321c210bf73c7b9f177849ff4a6b6192d237 (diff) |
Make lots of tests run in parallel
Putting t.Parallel() in each test makes them run in parallel.
Additional t.Parallel() could be added to each subtest, although
that requires making a local copy of the loop variable for
table driven tests.
Test: m checkbuild
Change-Id: I5d9869ead441093f4d7c5757f2447385333a95a4
Diffstat (limited to 'sh/sh_binary_test.go')
-rw-r--r-- | sh/sh_binary_test.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sh/sh_binary_test.go b/sh/sh_binary_test.go index 0aa607b6f..e9086be73 100644 --- a/sh/sh_binary_test.go +++ b/sh/sh_binary_test.go @@ -61,6 +61,7 @@ func testShBinary(t *testing.T, bp string) (*android.TestContext, android.Config } func TestShTestSubDir(t *testing.T) { + t.Parallel() ctx, config := testShBinary(t, ` sh_test { name: "foo", @@ -81,6 +82,7 @@ func TestShTestSubDir(t *testing.T) { } func TestShTest(t *testing.T) { + t.Parallel() ctx, config := testShBinary(t, ` sh_test { name: "foo", @@ -111,6 +113,7 @@ func TestShTest(t *testing.T) { } func TestShTest_dataModules(t *testing.T) { + t.Parallel() ctx, config := testShBinary(t, ` sh_test { name: "foo", @@ -170,6 +173,7 @@ func TestShTest_dataModules(t *testing.T) { } func TestShTestHost(t *testing.T) { + t.Parallel() ctx, _ := testShBinary(t, ` sh_test_host { name: "foo", @@ -190,6 +194,7 @@ func TestShTestHost(t *testing.T) { } func TestShTestHost_dataDeviceModules(t *testing.T) { + t.Parallel() ctx, config := testShBinary(t, ` sh_test_host { name: "foo", |