Disabling Linux Bionic tests that fail on staging. (#72256)
authorIlona Tomkowicz <32700855+ilonatommy@users.noreply.github.com>
Fri, 15 Jul 2022 18:49:42 +0000 (20:49 +0200)
committerGitHub <noreply@github.com>
Fri, 15 Jul 2022 18:49:42 +0000 (14:49 -0400)
* Disabling LinuxBionic tests that fail on staging.

* Attempt 2.

* Fix 3 - partial, w/o SpecialFile_Unelevated_Throws

src/libraries/Common/tests/TestUtilities/System/PlatformDetection.cs
src/libraries/System.Formats.Tar/tests/TarReader/TarReader.TarEntry.ExtractToFile.Tests.Unix.cs
src/libraries/System.Formats.Tar/tests/TarReader/TarReader.TarEntry.ExtractToFileAsync.Tests.Unix.cs

index aaa8584..2704234 100644 (file)
@@ -243,7 +243,7 @@ namespace System
 
         public static bool SupportsAlpn => s_supportsAlpn.Value;
         public static bool SupportsClientAlpn => SupportsAlpn || IsOSX || IsMacCatalyst || IsiOS || IstvOS;
-        public static bool SupportsHardLinkCreation => !IsAndroid;
+        public static bool SupportsHardLinkCreation => !IsAndroid && !IsLinuxBionic;
 
         private static readonly Lazy<bool> s_supportsTls10 = new Lazy<bool>(GetTls10Support);
         private static readonly Lazy<bool> s_supportsTls11 = new Lazy<bool>(GetTls11Support);
index 361a85a..fee4da5 100644 (file)
@@ -9,7 +9,7 @@ namespace System.Formats.Tar.Tests
 {
     public partial class TarReader_TarEntry_ExtractToFile_Tests : TarTestsBase
     {
-        [PlatformSpecific(TestPlatforms.AnyUnix & ~TestPlatforms.tvOS)] // https://github.com/dotnet/runtime/issues/68360
+        [PlatformSpecific(TestPlatforms.AnyUnix & ~TestPlatforms.tvOS & ~TestPlatforms.LinuxBionic)] // https://github.com/dotnet/runtime/issues/68360
         [ConditionalFact(nameof(IsUnixButNotSuperUser))]
         public void SpecialFile_Unelevated_Throws()
         {
index 2e36ad8..3fff936 100644 (file)
@@ -9,7 +9,7 @@ namespace System.Formats.Tar.Tests
 {
     public partial class TarReader_TarEntry_ExtractToFileAsync_Tests : TarTestsBase
     {
-        [PlatformSpecific(TestPlatforms.AnyUnix & ~TestPlatforms.tvOS)] // https://github.com/dotnet/runtime/issues/68360
+        [PlatformSpecific(TestPlatforms.AnyUnix & ~TestPlatforms.tvOS & ~TestPlatforms.LinuxBionic)] // https://github.com/dotnet/runtime/issues/68360
         [ConditionalFact(nameof(IsUnixButNotSuperUser))]
         public async Task SpecialFile_Unelevated_Throws_Async()
         {