]> git.proxmox.com Git - mirror_zfs.git/commitdiff
Fix arithmetic error message in zfs_clone_010_pos
authorbunder2015 <omfgbunder@gmail.com>
Mon, 26 Jun 2017 21:48:54 +0000 (17:48 -0400)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 26 Jun 2017 21:48:54 +0000 (14:48 -0700)
zfs_clone_010_pos.ksh: line 234: ZFS_MAXPROPLEN: arithmetic syntax error

Reviewed-by: Kash Pande <kash@tripleback.net>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: George Melikov <mail@gmelikov.ru>
Reviewed-by: Giuseppe Di Natale <dinatale2@llnl.gov>
Signed-off-by: bunder2015 <omfgbunder@gmail.com>
Closes #6268

tests/zfs-tests/tests/functional/cli_root/zfs_clone/zfs_clone_010_pos.ksh

index 8b72d47a0bbcc09f622a6f8ef9160fd046502e1f..40cabf649d11536ff9f41fe58874dc13cab81dd7 100755 (executable)
@@ -231,7 +231,7 @@ while((i <= $(( ZFS_MAXPROPLEN/200+1 )))); do
 done
 clone_list=$(zfs list -o clones $fs@snap)
 char_count=$(echo "$clone_list" | tail -1 | wc | awk '{print $3}')
-[[ $char_count -eq ZFS_MAXPROPLEN ]] || \
+[[ $char_count -eq $ZFS_MAXPROPLEN ]] || \
     log_fail "Clone list not truncated correctly. Unexpected character count" \
         "$char_count"