mirror of
https://github.com/ipfs/kubo.git
synced 2026-03-01 06:17:56 +08:00
test: repo migrations fetch - support windows wanting binaries to end in .exe
This commit is contained in:
parent
09a481ea7a
commit
891c81e631
@ -40,6 +40,7 @@ func createFakeArchive(name string, archZip bool, w io.Writer) {
|
||||
if fileName == "go-ipfs" {
|
||||
fileName = "ipfs"
|
||||
}
|
||||
fileName = ExeName(fileName)
|
||||
|
||||
var err error
|
||||
if archZip {
|
||||
@ -179,7 +180,7 @@ func TestFetchBinary(t *testing.T) {
|
||||
t.Error("expected 'exists' error, got:", err)
|
||||
}
|
||||
|
||||
os.Remove(path.Join(tmpDir, "ipfs"))
|
||||
os.Remove(path.Join(tmpDir, ExeName("ipfs")))
|
||||
|
||||
// Check error creating temp download directory
|
||||
err = os.Chmod(tmpDir, 0555)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user