Add testRunRestoreAssumeFailure function

This commit is contained in:
Lorenz Bausch 2022-05-20 16:07:38 +02:00
parent 9a7db6675c
commit be524f0b78
No known key found for this signature in database
GPG Key ID: FF6F200261C01807
1 changed files with 6 additions and 0 deletions

View File

@ -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,