You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
swift-package-manager/Tests/CommandsTests/PackageToolTests.swift:1162: error: -[CommandsTests.PackageToolTeststestArchiveSource] : XCTAssertTruefailed - actual: "error: Couldn’t create an archive: fatal: could not open '/' for writing: Is a directory "
The text was updated successfully, but these errors were encountered:
I discovered that this was caused by the version of git I'm using, installed via homebrew. Removing that fixes the issue. I suggest removing the second test since it seems to be git version sensitive:
diff --gita/Tests/CommandsTests/PackageToolTests.swiftb/Tests/CommandsTests/PackageToolTests.swiftindex758f8da8..4218b029100644
--- a/Tests/CommandsTests/PackageToolTests.swift
+++ b/Tests/CommandsTests/PackageToolTests.swift@@ -1160,8 +1160,7@@finalclassPackageToolTests: CommandsTestCase {
letstderrOutput = tryresult.utf8stderrOutput()
XCTAssert(
- stderrOutput.contains("error: Couldn’t create an archive:") &&
- stderrOutput.contains("fatal: could not create archive file '/': Is a directory"),
+ stderrOutput.contains("error: Couldn’t create an archive:"),
#"actual: "\#(stderrOutput)""#
)
}
Additional Detail from JIRA
md5: af6421b155d3e907c8b176cda4886a0f
Issue Description:
If I build latest main branch of swift-package-manager, and run the following test using the built version of swift-test:
it fails with this message:
The text was updated successfully, but these errors were encountered: