Skip to content

Commit 19f6a31

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 19f6a31

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Sources/SWBUtil/ProcessInfo.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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)