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:
parent
d7976a073e
commit
72f3516094
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue