ZTS: Fix zfs_receive_004_neg
`zfs recv` of an incremental stream that already exists is ignored, with a message like: receiving incremental stream of pool/fs@incsnap into pool/fs@incsnap snap testpool/testfs@incsnap already exists; ignoring And the command exits successfully (exit code 0). The zfs_receive_004_neg test is expecting that a this case will fail, with nonzero exit code. The fix is to remove this specific command from the test case. This lets us check that the remaining commands do in fact fail. Reviewed-by: Ryan Moeller <ryan@iXsystems.com> Reviewed-by: George Melikov <mail@gmelikov.ru> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Matthew Ahrens <mahrens@delphix.com> Closes #10055
This commit is contained in:
parent
2c3a83701d
commit
ab9646166d
|
@ -147,7 +147,6 @@ summary = {
|
||||||
known = {
|
known = {
|
||||||
'casenorm/mixed_none_lookup_ci': ['FAIL', '7633'],
|
'casenorm/mixed_none_lookup_ci': ['FAIL', '7633'],
|
||||||
'casenorm/mixed_formd_lookup_ci': ['FAIL', '7633'],
|
'casenorm/mixed_formd_lookup_ci': ['FAIL', '7633'],
|
||||||
'cli_root/zfs_receive/zfs_receive_004_neg': ['FAIL', known_reason],
|
|
||||||
'cli_root/zfs_unshare/zfs_unshare_002_pos': ['SKIP', na_reason],
|
'cli_root/zfs_unshare/zfs_unshare_002_pos': ['SKIP', na_reason],
|
||||||
'cli_root/zfs_unshare/zfs_unshare_006_pos': ['SKIP', na_reason],
|
'cli_root/zfs_unshare/zfs_unshare_006_pos': ['SKIP', na_reason],
|
||||||
'cli_user/misc/zfs_share_001_neg': ['SKIP', na_reason],
|
'cli_user/misc/zfs_share_001_neg': ['SKIP', na_reason],
|
||||||
|
|
|
@ -92,16 +92,11 @@ sync
|
||||||
|
|
||||||
set -A badargs \
|
set -A badargs \
|
||||||
"" "nonexistent-snap" "blah@blah" "-d" "-d nonexistent-dataset" \
|
"" "nonexistent-snap" "blah@blah" "-d" "-d nonexistent-dataset" \
|
||||||
"$TESTPOOL/$TESTFS" "$TESTPOOL1" "$TESTPOOL/fs@" "$TESTPOOL/fs@@mysnap" \
|
"$TESTPOOL1" "$TESTPOOL/fs@" "$TESTPOOL/fs@@mysnap" \
|
||||||
"$TESTPOOL/fs@@" "$TESTPOOL/fs/@mysnap" "$TESTPOOL/fs@/mysnap" \
|
"$TESTPOOL/fs@@" "$TESTPOOL/fs/@mysnap" "$TESTPOOL/fs@/mysnap" \
|
||||||
"$TESTPOOL/nonexistent-fs/nonexistent-fs" "-d $TESTPOOL/nonexistent-fs" \
|
"$TESTPOOL/nonexistent-fs/nonexistent-fs" "-d $TESTPOOL/nonexistent-fs" \
|
||||||
"-d $TESTPOOL/$TESTFS/nonexistent-fs"
|
"-d $TESTPOOL/$TESTFS/nonexistent-fs"
|
||||||
|
|
||||||
if is_global_zone ; then
|
|
||||||
typeset -i n=${#badargs[@]}
|
|
||||||
badargs[$n]="-d $TESTPOOL"
|
|
||||||
fi
|
|
||||||
|
|
||||||
typeset -i i=0
|
typeset -i i=0
|
||||||
while (( i < ${#badargs[*]} ))
|
while (( i < ${#badargs[*]} ))
|
||||||
do
|
do
|
||||||
|
|
Loading…
Reference in New Issue