fix: windows installation for restic 0.17.1 (#474)

Note: this fix relocates the restic binary on windows to C:\Program Files\backrest  OR to the directory where backrest is installed (path relative).
This commit is contained in:
Gareth
2024-09-14 02:57:50 -07:00
committed by GitHub
parent d2650fdd59
commit 4da9d89749
3 changed files with 7 additions and 10 deletions
+1 -5
View File
@@ -168,12 +168,8 @@ func TestResticPartialBackup(t *testing.T) {
t.Fatalf("wanted summary, got: nil")
}
if summary.TotalFilesProcessed != 0 {
t.Errorf("wanted 0 files, got: %d", summary.TotalFilesProcessed)
}
if !slices.ContainsFunc(entries, func(e BackupProgressEntry) bool {
return e.MessageType == "error" && e.Item == unreadablePath
return e.MessageType == "error" && strings.Contains(e.Item, unreadablePath)
}) {
t.Errorf("wanted entries to contain an error event for the unreadable file (%s), but did not find it", unreadablePath)
t.Logf("entries:\n")