diff options
author | Will Andrews <[email protected]> | 2021-01-25 16:38:19 -0600 |
---|---|---|
committer | GitHub <[email protected]> | 2021-01-25 14:38:19 -0800 |
commit | a57acbb627b20dc911cb83dd8340da0545745de0 (patch) | |
tree | 195bbab9dfbf8300099b40a0aeea42e090740d44 /tests/zfs-tests | |
parent | de1a6cc38743b5542252a1179cf519dfc3485508 (diff) |
ZTS: remove duplicate check_prop_source from zfs_receive
There is an identical definition in zfs_set_common.kshlib already.
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Will Andrews <[email protected]>
Closes #11516
Diffstat (limited to 'tests/zfs-tests')
-rwxr-xr-x | tests/zfs-tests/tests/functional/cli_root/zfs_receive/zfs_receive_014_pos.ksh | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/tests/zfs-tests/tests/functional/cli_root/zfs_receive/zfs_receive_014_pos.ksh b/tests/zfs-tests/tests/functional/cli_root/zfs_receive/zfs_receive_014_pos.ksh index be04aed2b..989d31b90 100755 --- a/tests/zfs-tests/tests/functional/cli_root/zfs_receive/zfs_receive_014_pos.ksh +++ b/tests/zfs-tests/tests/functional/cli_root/zfs_receive/zfs_receive_014_pos.ksh @@ -55,31 +55,6 @@ function cleanup log_must zfs destroy -rf $dest } -# -# Verify property $2 is set from source $4 on dataset $1 and has value $3. -# -# $1 checked dataset -# $2 user property -# $3 property value -# $4 source -# -function check_prop_source -{ - typeset dataset=$1 - typeset prop=$2 - typeset value=$3 - typeset source=$4 - typeset chk_value=$(get_prop "$prop" "$dataset") - typeset chk_source=$(get_source "$prop" "$dataset") - if [[ "$chk_value" != "$value" || \ - "$chk_source" != "$4" ]] - then - return 1 - else - return 0 - fi -} - log_assert "ZFS successfully receive and restore properties." log_onexit cleanup |