aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorнаб <[email protected]>2022-02-20 02:08:59 +0100
committerBrian Behlendorf <[email protected]>2022-03-15 15:13:00 -0700
commite09762c6c20f866502767fc113d65ab5efcdf9b6 (patch)
tree2947f35e7dc1fbbb196bda10cd3f566525f06fa0 /tests
parent2feba9a6d8829605cbfe8f1f2ef56ddfdfb8d4ea (diff)
tests: zfs_set_common: check_prop_inherit: print faulty values
Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Ahelenia Ziemiańska <[email protected]> Closes #12996
Diffstat (limited to 'tests')
-rw-r--r--tests/zfs-tests/tests/functional/cli_root/zfs_set/zfs_set_common.kshlib8
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/zfs-tests/tests/functional/cli_root/zfs_set/zfs_set_common.kshlib b/tests/zfs-tests/tests/functional/cli_root/zfs_set/zfs_set_common.kshlib
index 120820763..7e34341d8 100644
--- a/tests/zfs-tests/tests/functional/cli_root/zfs_set/zfs_set_common.kshlib
+++ b/tests/zfs-tests/tests/functional/cli_root/zfs_set/zfs_set_common.kshlib
@@ -289,8 +289,8 @@ function check_prop_source
if [[ "$chk_value" != "$value" || "$chk_source" != "$source" ]]
then
- log_note "expected (value '$value', source '$source'), got \
- (value '$chk_value', source '$chk_source')"
+ log_note "expected (value '$value', source '$source')," \
+ "got (value '$chk_value', source '$chk_source')"
return 1
else
return 0
@@ -318,6 +318,8 @@ function check_prop_inherit
if [[ "$value" != "$inherited_value" || \
"$source" != "inherited from $inherited_dtst" ]]
then
+ log_note "expected (value '$inherited_value', source 'inherited from $inherited_dtst')," \
+ "got (value '$value', source '$source')"
return 1
else
return 0
@@ -341,7 +343,7 @@ function check_prop_received
received=$(zfs get -H -o received "$prop" "$dataset")
if (($? != 0)); then
- log_fail "Unable to get $prop received value for dataset " \
+ log_fail "Unable to get $prop received value for dataset" \
"$dataset"
fi
if [[ "$received" == "$value" ]]