Skip to content

Commit

Permalink
Update zfs test
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason King committed Jan 13, 2020
1 parent 439a110 commit cbdf8c5
Showing 1 changed file with 6 additions and 2 deletions.
Expand Up @@ -11,7 +11,7 @@
#

#
# Copyright 2019 Joyent, Inc.
# Copyright 2020 Joyent, Inc.
#

. $STF_SUITE/tests/functional/channel_program/channel_common.kshlib
Expand All @@ -22,7 +22,7 @@ fs=$TESTPOOL/$TESTFS
testprop="com.joyent:testprop"
testval="testval"

log_must zfs set $testprop=$testval $fs
log_must dataset_setprop $fs $testprop $testval
log_must_program_sync $TESTPOOL - $fs $testprop <<-EOF
arg = ...
fs = arg["argv"][1]
Expand All @@ -32,4 +32,8 @@ log_must_program_sync $TESTPOOL - $fs $testprop <<-EOF
return msg
EOF


prop=$(get_prop $testprop $fs)
[[ "$prop" == "-" ]] || log_fail "Property still set after inheriting"

log_pass "Inherit/clear property with channel program works."

0 comments on commit cbdf8c5

Please sign in to comment.