From be524f0b78e7963d9a5c700968fdebe33c9e5783 Mon Sep 17 00:00:00 2001 From: Lorenz Bausch Date: Fri, 20 May 2022 16:07:38 +0200 Subject: [PATCH] Add testRunRestoreAssumeFailure function --- cmd/restic/integration_test.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cmd/restic/integration_test.go b/cmd/restic/integration_test.go index cefea852a..f15b3d9fd 100644 --- a/cmd/restic/integration_test.go +++ b/cmd/restic/integration_test.go @@ -131,6 +131,12 @@ func testRunRestoreIncludes(t testing.TB, gopts GlobalOptions, dir string, snaps rtest.OK(t, runRestore(opts, gopts, []string{snapshotID.String()})) } +func testRunRestoreAssumeFailure(t testing.TB, snapshotID string, opts RestoreOptions, gopts GlobalOptions) error { + err := runRestore(opts, gopts, []string{snapshotID}) + + return err +} + func testRunCheck(t testing.TB, gopts GlobalOptions) { opts := CheckOptions{ ReadData: true,