Skip to content

Commit 8eac93a

Browse files
Disable test on ARM for CI stability. (#6044)
1 parent 97cdb65 commit 8eac93a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/Microsoft.ML.Tests/ImagesTests.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
using System.Drawing;
88
using System.IO;
99
using System.Linq;
10+
using System.Runtime.InteropServices;
1011
using Microsoft.ML.Data;
1112
using Microsoft.ML.Model;
1213
using Microsoft.ML.RunTests;
@@ -19,6 +20,7 @@ namespace Microsoft.ML.Tests
1920
{
2021
public class ImageTests : TestDataPipeBase
2122
{
23+
private static bool IsNotArm => RuntimeInformation.ProcessArchitecture != Architecture.Arm && RuntimeInformation.ProcessArchitecture != Architecture.Arm64;
2224
public ImageTests(ITestOutputHelper output) : base(output)
2325
{
2426
}
@@ -472,7 +474,7 @@ public void TestBackAndForthConversionWithDifferentOrder()
472474
Done();
473475
}
474476

475-
[Fact]
477+
[ConditionalFact(nameof(IsNotArm))] //"System.Drawing has some issues on ARM. Disabling this test for CI stability. Tracked in https://github.com/dotnet/machinelearning/issues/6043"
476478
public void TestBackAndForthConversionWithAlphaNoInterleave()
477479
{
478480
IHostEnvironment env = new MLContext(1);
@@ -586,7 +588,7 @@ public void TestBackAndForthConversionWithoutAlphaNoInterleave()
586588
Done();
587589
}
588590

589-
[Fact]
591+
[ConditionalFact(nameof(IsNotArm))] //"System.Drawing has some issues on ARM. Disabling this test for CI stability. Tracked in https://github.com/dotnet/machinelearning/issues/6043"
590592
public void TestBackAndForthConversionWithAlphaInterleaveNoOffset()
591593
{
592594
IHostEnvironment env = new MLContext(1);

0 commit comments

Comments
 (0)