mirror of
https://git.proxmox.com/git/mirror_zfs
synced 2025-04-28 06:00:44 +00:00
ZTS: Fix zpool dry run
tests output formating
Signed-off-by: Attila Fülöp <attila@fueloep.org>
This commit is contained in:
parent
029c4ae03a
commit
5b0c27cd14
@ -161,7 +161,11 @@ for (( i=0; i < ${#tests[@]}; i+=1 )); do
|
||||
log_fail eval "zpool add -n '$TESTPOOL' $add"
|
||||
fi
|
||||
if [[ "$out" != "$want" ]]; then
|
||||
log_fail "Got:\n" "$out" "\nbut expected:\n" "$want"
|
||||
log_note "Got:"
|
||||
log_note "$out"
|
||||
log_note "but expected:"
|
||||
log_note "$want"
|
||||
log_fail "Dry run does not display config correctly"
|
||||
fi
|
||||
log_must destroy_pool "$TESTPOOL"
|
||||
done
|
||||
|
@ -133,7 +133,11 @@ for (( i=0; i < ${#tests[@]}; i+=1 )); do
|
||||
log_fail eval "zpool create -n '$TESTPOOL' $tree"
|
||||
fi
|
||||
if [[ "$out" != "$want" ]]; then
|
||||
log_fail "Got:\n" "$out" "\nbut expected:\n" "$want"
|
||||
log_note "Got:"
|
||||
log_note "$out"
|
||||
log_note "but expected:"
|
||||
log_note "$want"
|
||||
log_fail "Dry run does not display config correctly"
|
||||
fi
|
||||
done
|
||||
|
||||
|
@ -146,7 +146,11 @@ for (( i=0; i < ${#tests[@]}; i+=1 )); do
|
||||
log_fail eval "zpool split -n '$TESTPOOL' '$NEWPOOL' $devs"
|
||||
fi
|
||||
if [[ "$out" != "$want" ]]; then
|
||||
log_fail "Got:\n" "$out" "\nbut expected:\n" "$want"
|
||||
log_note "Got:"
|
||||
log_note "$out"
|
||||
log_note "but expected:"
|
||||
log_note "$want"
|
||||
log_fail "Dry run does not display config correctly"
|
||||
fi
|
||||
log_must destroy_pool "$TESTPOOL"
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user