Skip to content
Permalink
Browse files

Update zfs test

  • Loading branch information
jasonbking committed Jan 13, 2020
1 parent 439a110 commit cbdf8c5b7c5559f868ac72dfdf293a8a98e49d87
Showing with 6 additions and 2 deletions.
  1. +6 −2 tests/zfs-tests/tests/functional/channel_program/synctask_core/tst.inherit.ksh
@@ -11,7 +11,7 @@
#

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

. $STF_SUITE/tests/functional/channel_program/channel_common.kshlib
@@ -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]
@@ -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.
You can’t perform that action at this time.