Support attaching existing Restic repositories
This commit is contained in:
@@ -298,6 +298,13 @@ func TestResticErrorExplainsCiphertextVerification(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func TestResticErrorExplainsMissingExistingRepositoryPath(t *testing.T) {
|
||||
err := resticError("Fatal: repository does not exist", fmt.Errorf("exit status 10"))
|
||||
if !strings.Contains(err.Error(), "exakten Repository-Ordner") || !strings.Contains(err.Error(), "wirklich neues") {
|
||||
t.Fatalf("unexpected error: %v", err)
|
||||
}
|
||||
}
|
||||
|
||||
func TestRunnerPausesResumesAndCancelsProcessGroup(t *testing.T) {
|
||||
dir := t.TempDir()
|
||||
ticksPath := filepath.Join(dir, "ticks")
|
||||
|
||||
Reference in New Issue
Block a user