Skip to content

Commit

Permalink
7496 cmp_ds_cont has never worked
Browse files Browse the repository at this point in the history
Reviewed by: Matthew Ahrens <mahrens@delphix.com>
Reviewed by: Paul Dagnelie <pcd@delphix.com>
Approved by: Gordon Ross <gordon.w.ross@gmail.com>
  • Loading branch information
jwk404 authored and ahrens committed Nov 7, 2016
1 parent 43297f9 commit 5dc1fd7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion usr/src/test/zfs-tests/tests/functional/rsend/rsend.kshlib
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ function cmp_ds_cont
dstdir=$(get_prop mountpoint $dst_fs)

$DIFF -r $srcdir $dstdir > /dev/null 2>&1
echo $?
return $?
}

#
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#

#
# Copyright (c) 2013 by Delphix. All rights reserved.
# Copyright (c) 2013, 2015 by Delphix. All rights reserved.
#

. $STF_SUITE/tests/functional/rsend/rsend.kshlib
Expand Down Expand Up @@ -76,7 +76,6 @@ log_must eval "$ZFS send -R $POOL@final > $BACKDIR/pool-final-R"
log_must eval "$ZFS receive -d -F $POOL2 < $BACKDIR/pool-final-R"
dstds=$(get_dst_ds $POOL $POOL2)
log_must cmp_ds_subs $POOL $dstds
log_must cmp_ds_cont $POOL $dstds

#
# Verify zfs send -R -I should succeed
Expand All @@ -94,6 +93,5 @@ else
$ZFS receive -d -F $dstds < $BACKDIR/pool-init-final-IR
fi
log_must cmp_ds_subs $POOL $dstds
log_must cmp_ds_cont $POOL $dstds

log_pass "Rename parent filesystem name will not change the dependent order."
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#

#
# Copyright (c) 2013 by Delphix. All rights reserved.
# Copyright (c) 2013, 2015 by Delphix. All rights reserved.
#

. $STF_SUITE/tests/functional/rsend/rsend.kshlib
Expand Down Expand Up @@ -116,9 +116,7 @@ fi
log_must cmp_ds_subs $POOL $dstds
typeset -i i=0
while ((i < ${#pair[@]})); do
log_must cmp_ds_cont ${pair[$i]} ${pair[((i+1))]}
log_must cmp_ds_prop ${pair[$i]} ${pair[((i+1))]}

((i += 2))
done

Expand Down

0 comments on commit 5dc1fd7

Please sign in to comment.