diff options
author | 2020-10-10 01:30:30 +0000 | |
---|---|---|
committer | 2020-10-09 18:34:24 -0700 | |
commit | 405af0785923a6e5042f9f69f41ebc46c713537a (patch) | |
tree | 712819e0893abab5f99dde3e910f65fe7ce0ccc6 /apex/apex_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 'apex/apex_test.go')
-rw-r--r-- | apex/apex_test.go | 105 |
1 files changed, 0 insertions, 105 deletions
diff --git a/apex/apex_test.go b/apex/apex_test.go index 5a9a3b19f..cf2c9533b 100644 --- a/apex/apex_test.go +++ b/apex/apex_test.go @@ -345,7 +345,6 @@ func ensureListEmpty(t *testing.T, result []string) { // Minimal test func TestBasicApex(t *testing.T) { - t.Parallel() ctx, config := testApex(t, ` apex_defaults { name: "myapex-defaults", @@ -598,7 +597,6 @@ func TestBasicApex(t *testing.T) { } func TestDefaults(t *testing.T) { - t.Parallel() ctx, _ := testApex(t, ` apex_defaults { name: "myapex-defaults", @@ -673,7 +671,6 @@ func TestDefaults(t *testing.T) { } func TestApexManifest(t *testing.T) { - t.Parallel() ctx, _ := testApex(t, ` apex { name: "myapex", @@ -695,7 +692,6 @@ func TestApexManifest(t *testing.T) { } func TestBasicZipApex(t *testing.T) { - t.Parallel() ctx, _ := testApex(t, ` apex { name: "myapex", @@ -746,7 +742,6 @@ func TestBasicZipApex(t *testing.T) { } func TestApexWithStubs(t *testing.T) { - t.Parallel() ctx, _ := testApex(t, ` apex { name: "myapex", @@ -939,7 +934,6 @@ func TestApexWithStubsWithMinSdkVersion(t *testing.T) { } func TestApexWithExplicitStubsDependency(t *testing.T) { - t.Parallel() ctx, _ := testApex(t, ` apex { name: "myapex2", @@ -1027,7 +1021,6 @@ func TestApexWithExplicitStubsDependency(t *testing.T) { } func TestApexWithRuntimeLibsDependency(t *testing.T) { - t.Parallel() /* myapex | @@ -1097,7 +1090,6 @@ func TestApexWithRuntimeLibsDependency(t *testing.T) { } func TestRuntimeApexShouldInstallHwasanIfLibcDependsOnIt(t *testing.T) { - t.Parallel() ctx, _ := testApex(t, "", func(fs map[string][]byte, config android.Config) { bp := ` apex { @@ -1161,7 +1153,6 @@ func TestRuntimeApexShouldInstallHwasanIfLibcDependsOnIt(t *testing.T) { } func TestRuntimeApexShouldInstallHwasanIfHwaddressSanitized(t *testing.T) { - t.Parallel() ctx, _ := testApex(t, "", func(fs map[string][]byte, config android.Config) { bp := ` apex { @@ -1223,7 +1214,6 @@ func TestRuntimeApexShouldInstallHwasanIfHwaddressSanitized(t *testing.T) { } func TestApexDependsOnLLNDKTransitively(t *testing.T) { - t.Parallel() testcases := []struct { name string minSdkVersion string @@ -1313,7 +1303,6 @@ func TestApexDependsOnLLNDKTransitively(t *testing.T) { } func TestApexWithSystemLibsStubs(t *testing.T) { - t.Parallel() ctx, _ := testApex(t, ` apex { name: "myapex", @@ -1404,7 +1393,6 @@ func TestApexWithSystemLibsStubs(t *testing.T) { } func TestApexMinSdkVersion_NativeModulesShouldBeBuiltAgainstStubs(t *testing.T) { - t.Parallel() // there are three links between liba --> libz // 1) myapex -> libx -> liba -> libz : this should be #29 link, but fallback to #28 // 2) otherapex -> liby -> liba -> libz : this should be #30 link @@ -1491,7 +1479,6 @@ func TestApexMinSdkVersion_NativeModulesShouldBeBuiltAgainstStubs(t *testing.T) } func TestApexMinSdkVersion_SupportsCodeNames(t *testing.T) { - t.Parallel() ctx, _ := testApex(t, ` apex { name: "myapex", @@ -1541,7 +1528,6 @@ func TestApexMinSdkVersion_SupportsCodeNames(t *testing.T) { } func TestApexMinSdkVersion_DefaultsToLatest(t *testing.T) { - t.Parallel() ctx, _ := testApex(t, ` apex { name: "myapex", @@ -1587,7 +1573,6 @@ func TestApexMinSdkVersion_DefaultsToLatest(t *testing.T) { } func TestPlatformUsesLatestStubsFromApexes(t *testing.T) { - t.Parallel() ctx, _ := testApex(t, ` apex { name: "myapex", @@ -1635,7 +1620,6 @@ func TestPlatformUsesLatestStubsFromApexes(t *testing.T) { } func TestQApexesUseLatestStubsInBundledBuildsAndHWASAN(t *testing.T) { - t.Parallel() ctx, _ := testApex(t, ` apex { name: "myapex", @@ -1675,7 +1659,6 @@ func TestQApexesUseLatestStubsInBundledBuildsAndHWASAN(t *testing.T) { } func TestQTargetApexUsesStaticUnwinder(t *testing.T) { - t.Parallel() ctx, _ := testApex(t, ` apex { name: "myapex", @@ -1706,7 +1689,6 @@ func TestQTargetApexUsesStaticUnwinder(t *testing.T) { } func TestApexMinSdkVersion_ErrorIfIncompatibleStubs(t *testing.T) { - t.Parallel() testApexError(t, `"libz" .*: not found a version\(<=29\)`, ` apex { name: "myapex", @@ -1742,7 +1724,6 @@ func TestApexMinSdkVersion_ErrorIfIncompatibleStubs(t *testing.T) { } func TestApexMinSdkVersion_ErrorIfIncompatibleVersion(t *testing.T) { - t.Parallel() testApexError(t, `module "mylib".*: should support min_sdk_version\(29\)`, ` apex { name: "myapex", @@ -1771,7 +1752,6 @@ func TestApexMinSdkVersion_ErrorIfIncompatibleVersion(t *testing.T) { } func TestApexMinSdkVersion_Okay(t *testing.T) { - t.Parallel() testApex(t, ` apex { name: "myapex", @@ -1822,7 +1802,6 @@ func TestApexMinSdkVersion_Okay(t *testing.T) { } func TestJavaStableSdkVersion(t *testing.T) { - t.Parallel() testCases := []struct { name string expectedError string @@ -1940,7 +1919,6 @@ func TestJavaStableSdkVersion(t *testing.T) { } func TestApexMinSdkVersion_ErrorIfDepIsNewer(t *testing.T) { - t.Parallel() testApexError(t, `module "mylib2".*: should support min_sdk_version\(29\) for "myapex"`, ` apex { name: "myapex", @@ -1982,7 +1960,6 @@ func TestApexMinSdkVersion_ErrorIfDepIsNewer(t *testing.T) { } func TestApexMinSdkVersion_ErrorIfDepIsNewer_Java(t *testing.T) { - t.Parallel() testApexError(t, `module "bar".*: should support min_sdk_version\(29\) for "myapex"`, ` apex { name: "myapex", @@ -2018,7 +1995,6 @@ func TestApexMinSdkVersion_ErrorIfDepIsNewer_Java(t *testing.T) { } func TestApexMinSdkVersion_OkayEvenWhenDepIsNewer_IfItSatisfiesApexMinSdkVersion(t *testing.T) { - t.Parallel() ctx, _ := testApex(t, ` apex { name: "myapex", @@ -2072,7 +2048,6 @@ func TestApexMinSdkVersion_OkayEvenWhenDepIsNewer_IfItSatisfiesApexMinSdkVersion } func TestFilesInSubDir(t *testing.T) { - t.Parallel() ctx, _ := testApex(t, ` apex { name: "myapex", @@ -2135,7 +2110,6 @@ func TestFilesInSubDir(t *testing.T) { } func TestFilesInSubDirWhenNativeBridgeEnabled(t *testing.T) { - t.Parallel() ctx, _ := testApex(t, ` apex { name: "myapex", @@ -2194,7 +2168,6 @@ func TestFilesInSubDirWhenNativeBridgeEnabled(t *testing.T) { } func TestUseVendor(t *testing.T) { - t.Parallel() ctx, _ := testApex(t, ` apex { name: "myapex", @@ -2249,7 +2222,6 @@ func TestUseVendor(t *testing.T) { } func TestUseVendorNotAllowedForSystemApexes(t *testing.T) { - t.Parallel() testApexError(t, `module "myapex" .*: use_vendor: not allowed`, ` apex { name: "myapex", @@ -2282,7 +2254,6 @@ func TestUseVendorNotAllowedForSystemApexes(t *testing.T) { } func TestUseVendorFailsIfNotVendorAvailable(t *testing.T) { - t.Parallel() testApexError(t, `dependency "mylib" of "myapex" missing variant:\n.*image:vendor`, ` apex { name: "myapex", @@ -2307,7 +2278,6 @@ func TestUseVendorFailsIfNotVendorAvailable(t *testing.T) { } func TestVendorApex(t *testing.T) { - t.Parallel() ctx, config := testApex(t, ` apex { name: "myapex", @@ -2353,7 +2323,6 @@ func TestVendorApex(t *testing.T) { } func TestVendorApex_use_vndk_as_stable(t *testing.T) { - t.Parallel() ctx, _ := testApex(t, ` apex { name: "myapex", @@ -2407,7 +2376,6 @@ func TestVendorApex_use_vndk_as_stable(t *testing.T) { } func TestApex_withPrebuiltFirmware(t *testing.T) { - t.Parallel() testCases := []struct { name string additionalProp string @@ -2444,7 +2412,6 @@ func TestApex_withPrebuiltFirmware(t *testing.T) { } func TestAndroidMk_UseVendorRequired(t *testing.T) { - t.Parallel() ctx, config := testApex(t, ` apex { name: "myapex", @@ -2479,7 +2446,6 @@ func TestAndroidMk_UseVendorRequired(t *testing.T) { } func TestAndroidMk_VendorApexRequired(t *testing.T) { - t.Parallel() ctx, config := testApex(t, ` apex { name: "myapex", @@ -2511,7 +2477,6 @@ func TestAndroidMk_VendorApexRequired(t *testing.T) { } func TestAndroidMkWritesCommonProperties(t *testing.T) { - t.Parallel() ctx, config := testApex(t, ` apex { name: "myapex", @@ -2541,7 +2506,6 @@ func TestAndroidMkWritesCommonProperties(t *testing.T) { } func TestStaticLinking(t *testing.T) { - t.Parallel() ctx, _ := testApex(t, ` apex { name: "myapex", @@ -2586,7 +2550,6 @@ func TestStaticLinking(t *testing.T) { } func TestKeys(t *testing.T) { - t.Parallel() ctx, _ := testApex(t, ` apex { name: "myapex_keytest", @@ -2643,7 +2606,6 @@ func TestKeys(t *testing.T) { } func TestCertificate(t *testing.T) { - t.Parallel() t.Run("if unspecified, it defaults to DefaultAppCertificate", func(t *testing.T) { ctx, _ := testApex(t, ` apex { @@ -2772,7 +2734,6 @@ func TestCertificate(t *testing.T) { } func TestMacro(t *testing.T) { - t.Parallel() ctx, _ := testApex(t, ` apex { name: "myapex", @@ -2900,7 +2861,6 @@ func TestMacro(t *testing.T) { } func TestHeaderLibsDependency(t *testing.T) { - t.Parallel() ctx, _ := testApex(t, ` apex { name: "myapex", @@ -3044,7 +3004,6 @@ func ensureExactContents(t *testing.T, ctx *android.TestContext, moduleName, var } func TestVndkApexCurrent(t *testing.T) { - t.Parallel() ctx, _ := testApex(t, ` apex_vndk { name: "myapex", @@ -3098,7 +3057,6 @@ func TestVndkApexCurrent(t *testing.T) { } func TestVndkApexWithPrebuilt(t *testing.T) { - t.Parallel() ctx, _ := testApex(t, ` apex_vndk { name: "myapex", @@ -3181,7 +3139,6 @@ func vndkLibrariesTxtFiles(vers ...string) (result string) { } func TestVndkApexVersion(t *testing.T) { - t.Parallel() ctx, _ := testApex(t, ` apex_vndk { name: "myapex_v27", @@ -3248,7 +3205,6 @@ func TestVndkApexVersion(t *testing.T) { } func TestVndkApexErrorWithDuplicateVersion(t *testing.T) { - t.Parallel() testApexError(t, `module "myapex_v27.*" .*: vndk_version: 27 is already defined in "myapex_v27.*"`, ` apex_vndk { name: "myapex_v27", @@ -3295,7 +3251,6 @@ func TestVndkApexErrorWithDuplicateVersion(t *testing.T) { } func TestVndkApexNameRule(t *testing.T) { - t.Parallel() ctx, _ := testApex(t, ` apex_vndk { name: "myapex", @@ -3327,7 +3282,6 @@ func TestVndkApexNameRule(t *testing.T) { } func TestVndkApexSkipsNativeBridgeSupportedModules(t *testing.T) { - t.Parallel() ctx, _ := testApex(t, ` apex_vndk { name: "myapex", @@ -3366,7 +3320,6 @@ func TestVndkApexSkipsNativeBridgeSupportedModules(t *testing.T) { } func TestVndkApexDoesntSupportNativeBridgeSupported(t *testing.T) { - t.Parallel() testApexError(t, `module "myapex" .*: native_bridge_supported: .* doesn't support native bridge binary`, ` apex_vndk { name: "myapex", @@ -3397,7 +3350,6 @@ func TestVndkApexDoesntSupportNativeBridgeSupported(t *testing.T) { } func TestVndkApexWithBinder32(t *testing.T) { - t.Parallel() ctx, _ := testApex(t, ` apex_vndk { name: "myapex_v27", @@ -3464,7 +3416,6 @@ func TestVndkApexWithBinder32(t *testing.T) { } func TestVndkApexShouldNotProvideNativeLibs(t *testing.T) { - t.Parallel() ctx, _ := testApex(t, ` apex_vndk { name: "myapex", @@ -3499,7 +3450,6 @@ func TestVndkApexShouldNotProvideNativeLibs(t *testing.T) { } func TestDependenciesInApexManifest(t *testing.T) { - t.Parallel() ctx, _ := testApex(t, ` apex { name: "myapex_nodep", @@ -3604,7 +3554,6 @@ func TestDependenciesInApexManifest(t *testing.T) { } func TestApexName(t *testing.T) { - t.Parallel() ctx, config := testApex(t, ` apex { name: "myapex", @@ -3649,7 +3598,6 @@ func TestApexName(t *testing.T) { } func TestNonTestApex(t *testing.T) { - t.Parallel() ctx, _ := testApex(t, ` apex { name: "myapex", @@ -3702,7 +3650,6 @@ func TestNonTestApex(t *testing.T) { } func TestTestApex(t *testing.T) { - t.Parallel() ctx, _ := testApex(t, ` apex_test { name: "myapex", @@ -3751,7 +3698,6 @@ func TestTestApex(t *testing.T) { } func TestApexWithTarget(t *testing.T) { - t.Parallel() ctx, _ := testApex(t, ` apex { name: "myapex", @@ -3842,7 +3788,6 @@ func TestApexWithTarget(t *testing.T) { } func TestApexWithShBinary(t *testing.T) { - t.Parallel() ctx, _ := testApex(t, ` apex { name: "myapex", @@ -3871,7 +3816,6 @@ func TestApexWithShBinary(t *testing.T) { } func TestApexInVariousPartition(t *testing.T) { - t.Parallel() testcases := []struct { propName, parition, flattenedPartition string }{ @@ -3916,7 +3860,6 @@ func TestApexInVariousPartition(t *testing.T) { } func TestFileContexts_FindInDefaultLocationIfNotSet(t *testing.T) { - t.Parallel() ctx, _ := testApex(t, ` apex { name: "myapex", @@ -3935,7 +3878,6 @@ func TestFileContexts_FindInDefaultLocationIfNotSet(t *testing.T) { } func TestFileContexts_ShouldBeUnderSystemSepolicyForSystemApexes(t *testing.T) { - t.Parallel() testApexError(t, `"myapex" .*: file_contexts: should be under system/sepolicy`, ` apex { name: "myapex", @@ -3954,7 +3896,6 @@ func TestFileContexts_ShouldBeUnderSystemSepolicyForSystemApexes(t *testing.T) { } func TestFileContexts_ProductSpecificApexes(t *testing.T) { - t.Parallel() testApexError(t, `"myapex" .*: file_contexts: cannot find`, ` apex { name: "myapex", @@ -3992,7 +3933,6 @@ func TestFileContexts_ProductSpecificApexes(t *testing.T) { } func TestFileContexts_SetViaFileGroup(t *testing.T) { - t.Parallel() ctx, _ := testApex(t, ` apex { name: "myapex", @@ -4020,7 +3960,6 @@ func TestFileContexts_SetViaFileGroup(t *testing.T) { } func TestApexKeyFromOtherModule(t *testing.T) { - t.Parallel() ctx, _ := testApex(t, ` apex_key { name: "myapex.key", @@ -4054,7 +3993,6 @@ func TestApexKeyFromOtherModule(t *testing.T) { } func TestPrebuilt(t *testing.T) { - t.Parallel() ctx, _ := testApex(t, ` prebuilt_apex { name: "myapex", @@ -4078,7 +4016,6 @@ func TestPrebuilt(t *testing.T) { } func TestPrebuiltFilenameOverride(t *testing.T) { - t.Parallel() ctx, _ := testApex(t, ` prebuilt_apex { name: "myapex", @@ -4096,7 +4033,6 @@ func TestPrebuiltFilenameOverride(t *testing.T) { } func TestPrebuiltOverrides(t *testing.T) { - t.Parallel() ctx, config := testApex(t, ` prebuilt_apex { name: "myapex.prebuilt", @@ -4117,7 +4053,6 @@ func TestPrebuiltOverrides(t *testing.T) { } func TestApexWithTests(t *testing.T) { - t.Parallel() ctx, config := testApex(t, ` apex_test { name: "myapex", @@ -4229,7 +4164,6 @@ func TestApexWithTests(t *testing.T) { } func TestInstallExtraFlattenedApexes(t *testing.T) { - t.Parallel() ctx, config := testApex(t, ` apex { name: "myapex", @@ -4253,7 +4187,6 @@ func TestInstallExtraFlattenedApexes(t *testing.T) { } func TestApexUsesOtherApex(t *testing.T) { - t.Parallel() ctx, _ := testApex(t, ` apex { name: "myapex", @@ -4314,7 +4247,6 @@ func TestApexUsesOtherApex(t *testing.T) { } func TestApexUsesFailsIfNotProvided(t *testing.T) { - t.Parallel() testApexError(t, `uses: "commonapex" does not provide native_shared_libs`, ` apex { name: "myapex", @@ -4355,7 +4287,6 @@ func TestApexUsesFailsIfNotProvided(t *testing.T) { } func TestApexUsesFailsIfUseVenderMismatch(t *testing.T) { - t.Parallel() testApexError(t, `use_vendor: "commonapex" has different value of use_vendor`, ` apex { name: "myapex", @@ -4381,7 +4312,6 @@ func TestApexUsesFailsIfUseVenderMismatch(t *testing.T) { } func TestErrorsIfDepsAreNotEnabled(t *testing.T) { - t.Parallel() testApexError(t, `module "myapex" .* depends on disabled module "libfoo"`, ` apex { name: "myapex", @@ -4428,7 +4358,6 @@ func TestErrorsIfDepsAreNotEnabled(t *testing.T) { } func TestApexWithApps(t *testing.T) { - t.Parallel() ctx, _ := testApex(t, ` apex { name: "myapex", @@ -4507,7 +4436,6 @@ func TestApexWithApps(t *testing.T) { } func TestApexWithAppImports(t *testing.T) { - t.Parallel() ctx, _ := testApex(t, ` apex { name: "myapex", @@ -4556,7 +4484,6 @@ func TestApexWithAppImports(t *testing.T) { } func TestApexWithAppImportsPrefer(t *testing.T) { - t.Parallel() ctx, _ := testApex(t, ` apex { name: "myapex", @@ -4598,7 +4525,6 @@ func TestApexWithAppImportsPrefer(t *testing.T) { } func TestApexWithTestHelperApp(t *testing.T) { - t.Parallel() ctx, _ := testApex(t, ` apex { name: "myapex", @@ -4630,7 +4556,6 @@ func TestApexWithTestHelperApp(t *testing.T) { } func TestApexPropertiesShouldBeDefaultable(t *testing.T) { - t.Parallel() // libfoo's apex_available comes from cc_defaults testApexError(t, `requires "libfoo" that is not available for the APEX`, ` apex { @@ -4665,7 +4590,6 @@ func TestApexPropertiesShouldBeDefaultable(t *testing.T) { } func TestApexAvailable_DirectDep(t *testing.T) { - t.Parallel() // libfoo is not available to myapex, but only to otherapex testApexError(t, "requires \"libfoo\" that is not available for the APEX", ` apex { @@ -4701,7 +4625,6 @@ func TestApexAvailable_DirectDep(t *testing.T) { } func TestApexAvailable_IndirectDep(t *testing.T) { - t.Parallel() // libbbaz is an indirect dep testApexError(t, `requires "libbaz" that is not available for the APEX. Dependency path: .*via tag apex\.dependencyTag.*name:sharedLib.* @@ -4746,7 +4669,6 @@ func TestApexAvailable_IndirectDep(t *testing.T) { } func TestApexAvailable_InvalidApexName(t *testing.T) { - t.Parallel() testApexError(t, "\"otherapex\" is not a valid module name", ` apex { name: "myapex", @@ -4806,7 +4728,6 @@ func TestApexAvailable_InvalidApexName(t *testing.T) { } func TestApexAvailable_CheckForPlatform(t *testing.T) { - t.Parallel() ctx, _ := testApex(t, ` apex { name: "myapex", @@ -4869,7 +4790,6 @@ func TestApexAvailable_CheckForPlatform(t *testing.T) { } func TestApexAvailable_CreatedForApex(t *testing.T) { - t.Parallel() ctx, _ := testApex(t, ` apex { name: "myapex", @@ -4904,7 +4824,6 @@ func TestApexAvailable_CreatedForApex(t *testing.T) { } func TestOverrideApex(t *testing.T) { - t.Parallel() ctx, config := testApex(t, ` apex { name: "myapex", @@ -4988,7 +4907,6 @@ func TestOverrideApex(t *testing.T) { } func TestLegacyAndroid10Support(t *testing.T) { - t.Parallel() ctx, _ := testApex(t, ` apex { name: "myapex", @@ -5044,7 +4962,6 @@ var filesForSdkLibrary = map[string][]byte{ } func TestJavaSDKLibrary(t *testing.T) { - t.Parallel() ctx, _ := testApex(t, ` apex { name: "myapex", @@ -5077,7 +4994,6 @@ func TestJavaSDKLibrary(t *testing.T) { } func TestJavaSDKLibrary_WithinApex(t *testing.T) { - t.Parallel() ctx, _ := testApex(t, ` apex { name: "myapex", @@ -5125,7 +5041,6 @@ func TestJavaSDKLibrary_WithinApex(t *testing.T) { } func TestJavaSDKLibrary_CrossBoundary(t *testing.T) { - t.Parallel() ctx, _ := testApex(t, ` apex { name: "myapex", @@ -5171,7 +5086,6 @@ func TestJavaSDKLibrary_CrossBoundary(t *testing.T) { } func TestJavaSDKLibrary_ImportPreferred(t *testing.T) { - t.Parallel() ctx, _ := testApex(t, ``, withFiles(map[string][]byte{ "apex/a.java": nil, @@ -5257,7 +5171,6 @@ func TestJavaSDKLibrary_ImportPreferred(t *testing.T) { } func TestJavaSDKLibrary_ImportOnly(t *testing.T) { - t.Parallel() testApexError(t, `java_libs: "foo" is not configured to be compiled into dex`, ` apex { name: "myapex", @@ -5284,7 +5197,6 @@ func TestJavaSDKLibrary_ImportOnly(t *testing.T) { } func TestCompatConfig(t *testing.T) { - t.Parallel() ctx, _ := testApex(t, ` apex { name: "myapex", @@ -5319,7 +5231,6 @@ func TestCompatConfig(t *testing.T) { } func TestRejectNonInstallableJavaLibrary(t *testing.T) { - t.Parallel() testApexError(t, `"myjar" is not configured to be compiled into dex`, ` apex { name: "myapex", @@ -5345,7 +5256,6 @@ func TestRejectNonInstallableJavaLibrary(t *testing.T) { } func TestCarryRequiredModuleNames(t *testing.T) { - t.Parallel() ctx, config := testApex(t, ` apex { name: "myapex", @@ -5384,7 +5294,6 @@ func TestCarryRequiredModuleNames(t *testing.T) { } func TestSymlinksFromApexToSystem(t *testing.T) { - t.Parallel() bp := ` apex { name: "myapex", @@ -5514,7 +5423,6 @@ func TestSymlinksFromApexToSystem(t *testing.T) { } func TestSymlinksFromApexToSystemRequiredModuleNames(t *testing.T) { - t.Parallel() ctx, config := testApex(t, ` apex { name: "myapex", @@ -5566,7 +5474,6 @@ func TestSymlinksFromApexToSystemRequiredModuleNames(t *testing.T) { } func TestApexWithJniLibs(t *testing.T) { - t.Parallel() ctx, _ := testApex(t, ` apex { name: "myapex", @@ -5608,7 +5515,6 @@ func TestApexWithJniLibs(t *testing.T) { } func TestApexMutatorsDontRunIfDisabled(t *testing.T) { - t.Parallel() ctx, _ := testApex(t, ` apex { name: "myapex", @@ -5630,7 +5536,6 @@ func TestApexMutatorsDontRunIfDisabled(t *testing.T) { } func TestAppBundle(t *testing.T) { - t.Parallel() ctx, _ := testApex(t, ` apex { name: "myapex", @@ -5661,7 +5566,6 @@ func TestAppBundle(t *testing.T) { } func TestAppSetBundle(t *testing.T) { - t.Parallel() ctx, _ := testApex(t, ` apex { name: "myapex", @@ -5836,7 +5740,6 @@ func testNoUpdatableJarsInBootImage(t *testing.T, errmsg string, transformDexpre } func TestUpdatable_should_set_min_sdk_version(t *testing.T) { - t.Parallel() testApexError(t, `"myapex" .*: updatable: updatable APEXes should set min_sdk_version`, ` apex { name: "myapex", @@ -5853,7 +5756,6 @@ func TestUpdatable_should_set_min_sdk_version(t *testing.T) { } func TestNoUpdatableJarsInBootImage(t *testing.T) { - t.Parallel() var err string var transform func(*dexpreopt.GlobalConfig) @@ -5990,7 +5892,6 @@ func testApexPermittedPackagesRules(t *testing.T, errmsg, bp string, apexBootJar } func TestApexPermittedPackagesRules(t *testing.T) { - t.Parallel() testcases := []struct { name string expectedError string @@ -6074,7 +5975,6 @@ func TestApexPermittedPackagesRules(t *testing.T) { } func TestTestFor(t *testing.T) { - t.Parallel() ctx, _ := testApex(t, ` apex { name: "myapex", @@ -6132,7 +6032,6 @@ func intPtr(i int) *int { } func TestApexSet(t *testing.T) { - t.Parallel() ctx, config := testApex(t, ` apex_set { name: "myapex", @@ -6172,7 +6071,6 @@ func TestApexSet(t *testing.T) { } func TestNoStaticLinkingToStubsLib(t *testing.T) { - t.Parallel() testApexError(t, `.*required by "mylib" is a native library providing stub.*`, ` apex { name: "myapex", @@ -6209,7 +6107,6 @@ func TestNoStaticLinkingToStubsLib(t *testing.T) { } func TestApexKeysTxt(t *testing.T) { - t.Parallel() ctx, _ := testApex(t, ` apex { name: "myapex", @@ -6250,7 +6147,6 @@ func TestApexKeysTxt(t *testing.T) { } func TestAllowedFiles(t *testing.T) { - t.Parallel() ctx, _ := testApex(t, ` apex { name: "myapex", @@ -6306,7 +6202,6 @@ func TestAllowedFiles(t *testing.T) { } func TestNonPreferredPrebuiltDependency(t *testing.T) { - t.Parallel() _, _ = testApex(t, ` apex { name: "myapex", |