forked from TrueCloudLab/restic
Add testRunRestoreAssumeFailure function
This commit is contained in:
parent
9a7db6675c
commit
be524f0b78
1 changed files with 6 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue