Commit a3dded6c authored by Johannes Schriewer's avatar Johannes Schriewer

Fix homedir test for CI

parent af56b7b5
Pipeline #1723 failed with stage
......@@ -171,10 +171,11 @@ class PathTests: XCTestCase {
func testHomeDir() {
if let p = Path.homeDirectory() {
#if os(Linux)
XCTAssert(p.components.count == 2)
if p.components.count >= 2 {
XCTAssert(p.components[0] == "home")
}
XCTAssert(p.components.count >= 2, "Home dir has \(p.comonents.count) components")
// disabled because CI has something other than /home/ci
// if p.components.count >= 2 {
// XCTAssert(p.components[0] == "home")
// }
XCTAssert(p.isAbsolute == true)
#else
XCTAssert(p.components.count == 2)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment