From 323dc60712491c71ccdc5363c42df61f0a192487 Mon Sep 17 00:00:00 2001 From: Colin Cross Date: Fri, 18 Sep 2020 14:25:31 -0700 Subject: 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 --- sh/sh_binary_test.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'sh/sh_binary_test.go') 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", -- cgit v1.2.3-59-g8ed1b