diff options
author | Colin Cross <ccross@android.com> | 2020-10-10 01:30:30 +0000 |
---|---|---|
committer | Colin Cross <ccross@android.com> | 2020-10-09 18:34:24 -0700 |
commit | 405af0785923a6e5042f9f69f41ebc46c713537a (patch) | |
tree | 712819e0893abab5f99dde3e910f65fe7ce0ccc6 /java/java_test.go | |
parent | 6682ef42a497e5fdf48d0ade03efd23dbf8379dd (diff) |
Revert "Make lots of tests run in parallel"
This reverts commit 323dc60712491c71ccdc5363c42df61f0a192487.
Reason for revert: Possible cause of test instability
Bug: 170513220
Test: soong tests
Change-Id: Iee168e9fbb4210569e6cffcc23e60d111403abb8
Diffstat (limited to 'java/java_test.go')
-rw-r--r-- | java/java_test.go | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/java/java_test.go b/java/java_test.go index 245654d1e..a43e2a8c9 100644 --- a/java/java_test.go +++ b/java/java_test.go @@ -177,7 +177,6 @@ func moduleToPath(name string) string { } func TestJavaLinkType(t *testing.T) { - t.Parallel() testJava(t, ` java_library { name: "foo", @@ -266,7 +265,6 @@ func TestJavaLinkType(t *testing.T) { } func TestSimple(t *testing.T) { - t.Parallel() ctx, _ := testJava(t, ` java_library { name: "foo", @@ -311,7 +309,6 @@ func TestSimple(t *testing.T) { } func TestExportedPlugins(t *testing.T) { - t.Parallel() type Result struct { library string processors string @@ -395,7 +392,6 @@ func TestExportedPlugins(t *testing.T) { } func TestSdkVersionByPartition(t *testing.T) { - t.Parallel() testJavaError(t, "sdk_version must have a value when the module is located at vendor or product", ` java_library { name: "foo", @@ -431,7 +427,6 @@ func TestSdkVersionByPartition(t *testing.T) { } func TestArchSpecific(t *testing.T) { - t.Parallel() ctx, _ := testJava(t, ` java_library { name: "foo", @@ -451,7 +446,6 @@ func TestArchSpecific(t *testing.T) { } func TestBinary(t *testing.T) { - t.Parallel() ctx, _ := testJava(t, ` java_library_host { name: "foo", @@ -480,7 +474,6 @@ func TestBinary(t *testing.T) { } func TestHostBinaryNoJavaDebugInfoOverride(t *testing.T) { - t.Parallel() bp := ` java_library { name: "target_library", @@ -516,7 +509,6 @@ func TestHostBinaryNoJavaDebugInfoOverride(t *testing.T) { } func TestPrebuilts(t *testing.T) { - t.Parallel() ctx, _ := testJava(t, ` java_library { name: "foo", @@ -612,7 +604,6 @@ func assertDeepEquals(t *testing.T, message string, expected interface{}, actual } func TestJavaSdkLibraryImport(t *testing.T) { - t.Parallel() ctx, _ := testJava(t, ` java_library { name: "foo", @@ -669,7 +660,6 @@ func TestJavaSdkLibraryImport(t *testing.T) { } func TestJavaSdkLibraryImport_WithSource(t *testing.T) { - t.Parallel() ctx, _ := testJava(t, ` java_sdk_library { name: "sdklib", @@ -709,7 +699,6 @@ func TestJavaSdkLibraryImport_WithSource(t *testing.T) { } func TestJavaSdkLibraryImport_Preferred(t *testing.T) { - t.Parallel() ctx, _ := testJava(t, ` java_sdk_library { name: "sdklib", @@ -747,7 +736,6 @@ func TestJavaSdkLibraryImport_Preferred(t *testing.T) { } func TestDefaults(t *testing.T) { - t.Parallel() ctx, _ := testJava(t, ` java_defaults { name: "defaults", @@ -823,7 +811,6 @@ func TestDefaults(t *testing.T) { } func TestResources(t *testing.T) { - t.Parallel() var table = []struct { name string prop string @@ -930,7 +917,6 @@ func TestResources(t *testing.T) { } func TestIncludeSrcs(t *testing.T) { - t.Parallel() ctx, _ := testJavaWithFS(t, ` java_library { name: "foo", @@ -998,7 +984,6 @@ func TestIncludeSrcs(t *testing.T) { } func TestGeneratedSources(t *testing.T) { - t.Parallel() ctx, _ := testJavaWithFS(t, ` java_library { name: "foo", @@ -1035,7 +1020,6 @@ func TestGeneratedSources(t *testing.T) { } func TestTurbine(t *testing.T) { - t.Parallel() ctx, _ := testJava(t, ` java_library { name: "foo", @@ -1085,7 +1069,6 @@ func TestTurbine(t *testing.T) { } func TestSharding(t *testing.T) { - t.Parallel() ctx, _ := testJava(t, ` java_library { name: "bar", @@ -1104,7 +1087,6 @@ func TestSharding(t *testing.T) { } func TestDroiddoc(t *testing.T) { - t.Parallel() ctx, _ := testJavaWithFS(t, ` droiddoc_exported_dir { name: "droiddoc-templates-sdk", @@ -1183,7 +1165,6 @@ func TestDroiddoc(t *testing.T) { } func TestDroiddocArgsAndFlagsCausesError(t *testing.T) { - t.Parallel() testJavaError(t, "flags is set. Cannot set args", ` droiddoc_exported_dir { name: "droiddoc-templates-sdk", @@ -1230,7 +1211,6 @@ func TestDroiddocArgsAndFlagsCausesError(t *testing.T) { } func TestDroidstubs(t *testing.T) { - t.Parallel() ctx, _ := testJavaWithFS(t, ` droiddoc_exported_dir { name: "droiddoc-templates-sdk", @@ -1287,7 +1267,6 @@ func TestDroidstubs(t *testing.T) { } func TestDroidstubsWithSystemModules(t *testing.T) { - t.Parallel() ctx, _ := testJava(t, ` droidstubs { name: "stubs-source-system-modules", @@ -1347,7 +1326,6 @@ func checkSystemModulesUseByDroidstubs(t *testing.T, ctx *android.TestContext, m } func TestJarGenrules(t *testing.T) { - t.Parallel() ctx, _ := testJava(t, ` java_library { name: "foo", @@ -1402,7 +1380,6 @@ func TestJarGenrules(t *testing.T) { } func TestExcludeFileGroupInSrcs(t *testing.T) { - t.Parallel() ctx, _ := testJava(t, ` java_library { name: "foo", @@ -1429,7 +1406,6 @@ func TestExcludeFileGroupInSrcs(t *testing.T) { } func TestJavaLibrary(t *testing.T) { - t.Parallel() config := testConfig(nil, "", map[string][]byte{ "libcore/Android.bp": []byte(` java_library { @@ -1467,7 +1443,6 @@ func TestJavaImport(t *testing.T) { } func TestJavaSdkLibrary(t *testing.T) { - t.Parallel() ctx, _ := testJava(t, ` droiddoc_exported_dir { name: "droiddoc-templates-sdk", @@ -1606,7 +1581,6 @@ func TestJavaSdkLibrary(t *testing.T) { } func TestJavaSdkLibrary_DoNotAccessImplWhenItIsNotBuilt(t *testing.T) { - t.Parallel() ctx, _ := testJava(t, ` java_sdk_library { name: "foo", @@ -1632,7 +1606,6 @@ func TestJavaSdkLibrary_DoNotAccessImplWhenItIsNotBuilt(t *testing.T) { } func TestJavaSdkLibrary_UseSourcesFromAnotherSdkLibrary(t *testing.T) { - t.Parallel() testJava(t, ` java_sdk_library { name: "foo", @@ -1651,7 +1624,6 @@ func TestJavaSdkLibrary_UseSourcesFromAnotherSdkLibrary(t *testing.T) { } func TestJavaSdkLibrary_AccessOutputFiles_MissingScope(t *testing.T) { - t.Parallel() testJavaError(t, `"foo" does not provide api scope system`, ` java_sdk_library { name: "foo", @@ -1670,7 +1642,6 @@ func TestJavaSdkLibrary_AccessOutputFiles_MissingScope(t *testing.T) { } func TestJavaSdkLibrary_Deps(t *testing.T) { - t.Parallel() ctx, _ := testJava(t, ` java_sdk_library { name: "sdklib", @@ -1693,7 +1664,6 @@ func TestJavaSdkLibrary_Deps(t *testing.T) { } func TestJavaSdkLibraryImport_AccessOutputFiles(t *testing.T) { - t.Parallel() testJava(t, ` java_sdk_library_import { name: "foo", @@ -1717,7 +1687,6 @@ func TestJavaSdkLibraryImport_AccessOutputFiles(t *testing.T) { } func TestJavaSdkLibraryImport_AccessOutputFiles_Invalid(t *testing.T) { - t.Parallel() bp := ` java_sdk_library_import { name: "foo", @@ -1766,7 +1735,6 @@ func TestJavaSdkLibraryImport_AccessOutputFiles_Invalid(t *testing.T) { } func TestJavaSdkLibrary_InvalidScopes(t *testing.T) { - t.Parallel() testJavaError(t, `module "foo": enabled api scope "system" depends on disabled scope "public"`, ` java_sdk_library { name: "foo", @@ -1785,7 +1753,6 @@ func TestJavaSdkLibrary_InvalidScopes(t *testing.T) { } func TestJavaSdkLibrary_SdkVersion_ForScope(t *testing.T) { - t.Parallel() testJava(t, ` java_sdk_library { name: "foo", @@ -1800,7 +1767,6 @@ func TestJavaSdkLibrary_SdkVersion_ForScope(t *testing.T) { } func TestJavaSdkLibrary_ModuleLib(t *testing.T) { - t.Parallel() testJava(t, ` java_sdk_library { name: "foo", @@ -1817,7 +1783,6 @@ func TestJavaSdkLibrary_ModuleLib(t *testing.T) { } func TestJavaSdkLibrary_SystemServer(t *testing.T) { - t.Parallel() testJava(t, ` java_sdk_library { name: "foo", @@ -1834,7 +1799,6 @@ func TestJavaSdkLibrary_SystemServer(t *testing.T) { } func TestJavaSdkLibrary_MissingScope(t *testing.T) { - t.Parallel() testJavaError(t, `requires api scope module-lib from foo but it only has \[\] available`, ` java_sdk_library { name: "foo", @@ -1854,7 +1818,6 @@ func TestJavaSdkLibrary_MissingScope(t *testing.T) { } func TestJavaSdkLibrary_FallbackScope(t *testing.T) { - t.Parallel() testJava(t, ` java_sdk_library { name: "foo", @@ -1875,7 +1838,6 @@ func TestJavaSdkLibrary_FallbackScope(t *testing.T) { } func TestJavaSdkLibrary_DefaultToStubs(t *testing.T) { - t.Parallel() ctx, _ := testJava(t, ` java_sdk_library { name: "foo", @@ -1951,7 +1913,6 @@ func (ctx *mockContext) PropertyErrorf(property, format string, args ...interfac } func TestCompilerFlags(t *testing.T) { - t.Parallel() for _, testCase := range compilerFlagsTestCases { ctx := &mockContext{result: true} CheckKotlincFlags(ctx, []string{testCase.in}) @@ -1982,7 +1943,6 @@ func checkPatchModuleFlag(t *testing.T, ctx *android.TestContext, moduleName str } func TestPatchModule(t *testing.T) { - t.Parallel() t.Run("Java language level 8", func(t *testing.T) { // Test with legacy javac -source 1.8 -target 1.8 bp := ` @@ -2048,7 +2008,6 @@ func TestPatchModule(t *testing.T) { } func TestJavaSystemModules(t *testing.T) { - t.Parallel() ctx, _ := testJava(t, ` java_system_modules { name: "system-modules", @@ -2083,7 +2042,6 @@ func TestJavaSystemModules(t *testing.T) { } func TestJavaSystemModulesImport(t *testing.T) { - t.Parallel() ctx, _ := testJava(t, ` java_system_modules_import { name: "system-modules", @@ -2114,7 +2072,6 @@ func TestJavaSystemModulesImport(t *testing.T) { } func TestJavaLibraryWithSystemModules(t *testing.T) { - t.Parallel() ctx, _ := testJava(t, ` java_library { name: "lib-with-source-system-modules", @@ -2171,7 +2128,6 @@ func checkBootClasspathForSystemModule(t *testing.T, ctx *android.TestContext, m } func TestAidlExportIncludeDirsFromImports(t *testing.T) { - t.Parallel() ctx, _ := testJava(t, ` java_library { name: "foo", @@ -2196,7 +2152,6 @@ func TestAidlExportIncludeDirsFromImports(t *testing.T) { } func TestDataNativeBinaries(t *testing.T) { - t.Parallel() ctx, config := testJava(t, ` java_test_host { name: "foo", |