tests: zfs_rollback_commit: talkative failures

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: John Kennedy <john.kennedy@delphix.com>
Reviewed-by: Ryan Moeller <ryan@iXsystems.com>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Closes #13259
This commit is contained in:
наб 2022-03-12 00:32:13 +01:00 committed by Brian Behlendorf
parent d7976a073e
commit 72f3516094
1 changed files with 3 additions and 12 deletions

View File

@ -270,11 +270,7 @@ function check_files
typeset sum0=$(getsum $file0)
typeset sum1=$(getsum $file1)
typeset sum2=$(getsum $file2)
if [[ $sum0 != $origsum || \
$sum1 != $origsum || sum2 != $origsum ]]
then
log_fail "After rollback, file sum is changed."
fi
log_must [ $sum0 = $origsum \&\& $sum1 = $origsum \&\& sum2 = $origsum ]
;;
$TESTSNAP1)
log_must files_exist $file0 $file1
@ -282,19 +278,14 @@ function check_files
typeset sum0=$(getsum $file0)
typeset sum1=$(getsum $file1)
if [[ $sum0 != $origsum || $sum1 != $origsum ]]
then
log_fail "After rollback, file sum is changed."
fi
log_must [ $sum0 = $origsum \&\& $sum1 = $origsum ]
;;
$TESTSNAP)
log_must files_exist $file0
log_must files_nonexist $file1 $file2
typeset sum0=$(getsum $file0)
if [[ $sum0 != $origsum ]]; then
log_fail "After rollback, file sum is changed."
fi
log_must [ $sum0 = $origsum ]
;;
esac
}