Skip to content

Commit 2da727f

Browse files
committed
Do not run tests on windows
Mocked filesystem does not work properly with paths like /etc/os-release. No point in running them on Windows
1 parent faf4d7e commit 2da727f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Sources/SWBUtil/ProcessInfo.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ public enum OperatingSystem: Hashable, Sendable {
265265
return LinuxDistribution(kind: kind)
266266
}
267267
}
268-
268+
269269
return nil
270270
}
271271

@@ -419,3 +419,4 @@ extension FixedWidthInteger {
419419
return self != 0 ? self : other
420420
}
421421
}
422+

Tests/SWBUtilTests/LinuxDistributionTests.swift

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ import Foundation
1414
import Testing
1515
import SWBTestSupport
1616
import SWBUtil
17-
18-
@Suite
17+
@Suite(.skipHostOS(.windows))
1918
fileprivate struct LinuxDistributionTests {
2019

2120
/// Test helper to create a mock filesystem with specific files
@@ -431,4 +430,4 @@ fileprivate struct LinuxDistributionTests {
431430
#expect(distribution == nil)
432431
}
433432
}
434-
}
433+
}

0 commit comments

Comments
 (0)