@@ -45,12 +45,18 @@ public static class H2SpecCommands
45
45
46
46
private static string GetToolLocation ( )
47
47
{
48
+ if ( RuntimeInformation . OSArchitecture != Architecture . X64 )
49
+ {
50
+ // This is a known, unsupported scenario, no-op.
51
+ return null ;
52
+ }
53
+
48
54
var root = Path . Combine ( Environment . CurrentDirectory , "h2spec" ) ;
49
55
if ( OperatingSystem . IsWindows ( ) )
50
56
{
51
57
return Path . Combine ( root , "windows" , "h2spec.exe" ) ;
52
58
}
53
- else if ( OperatingSystem . IsLinux ( ) && ( RuntimeInformation . OSArchitecture == Architecture . X64 ) )
59
+ else if ( OperatingSystem . IsLinux ( ) )
54
60
{
55
61
var toolPath = Path . Combine ( root , "linux" , "h2spec" ) ;
56
62
chmod755 ( toolPath ) ;
@@ -67,10 +73,17 @@ private static string GetToolLocation()
67
73
68
74
public static IList < Tuple < string , string > > EnumerateTestCases ( )
69
75
{
76
+ // The tool isn't supported on some platforms (arm64), so we can't even enumerate the tests.
77
+ var toolLocation = GetToolLocation ( ) ;
78
+ if ( toolLocation == null )
79
+ {
80
+ return null ;
81
+ }
82
+
70
83
var testCases = new List < Tuple < string , string > > ( ) ;
71
84
var processOptions = new ProcessStartInfo
72
85
{
73
- FileName = GetToolLocation ( ) ,
86
+ FileName = toolLocation ,
74
87
RedirectStandardOutput = true ,
75
88
Arguments = "--strict --dryrun" ,
76
89
WindowStyle = ProcessWindowStyle . Hidden ,
0 commit comments