Author: asomers
Date: Mon Oct  7 19:24:50 2019
New Revision: 353284
URL: https://svnweb.freebsd.org/changeset/base/353284

Log:
  ZFS: fix the zpool_get_002_pos test
  
  ZFS has grown some additional properties that hadn't been added to the
  config file yet.  While I'm here, improve the error message, and remove a
  superfluous command.
  
  MFC after:    2 weeks
  Sponsored by: Axcient

Modified:
  head/tests/sys/cddl/zfs/tests/cli_root/zpool_get/zpool_get.cfg
  head/tests/sys/cddl/zfs/tests/cli_root/zpool_get/zpool_get_002_pos.ksh

Modified: head/tests/sys/cddl/zfs/tests/cli_root/zpool_get/zpool_get.cfg
==============================================================================
--- head/tests/sys/cddl/zfs/tests/cli_root/zpool_get/zpool_get.cfg      Mon Oct 
 7 19:05:05 2019        (r353283)
+++ head/tests/sys/cddl/zfs/tests/cli_root/zpool_get/zpool_get.cfg      Mon Oct 
 7 19:24:50 2019        (r353284)
@@ -54,6 +54,7 @@ typeset -a properties=(
     "fragmentation"
     "leaked"
     "bootsize"
+    "checkpoint"
     "feature@async_destroy"
     "feature@empty_bpobj"
     "feature@lz4_compress"
@@ -66,11 +67,14 @@ typeset -a properties=(
     "feature@bookmarks"
     "feature@filesystem_limits"
     "feature@large_blocks"
+    "feature@large_dnode"
     "feature@sha512"
     "feature@skein"
     # "feature@edonr" Edonr is not yet implemented on FreeBSD
     "feature@device_removal"
     "feature@obsolete_counts"
+    "feature@zpool_checkpoint"
+    "feature@spacemap_v2"
 )
 
 export DISK=${DISKS%% *}

Modified: head/tests/sys/cddl/zfs/tests/cli_root/zpool_get/zpool_get_002_pos.ksh
==============================================================================
--- head/tests/sys/cddl/zfs/tests/cli_root/zpool_get/zpool_get_002_pos.ksh      
Mon Oct  7 19:05:05 2019        (r353283)
+++ head/tests/sys/cddl/zfs/tests/cli_root/zpool_get/zpool_get_002_pos.ksh      
Mon Oct  7 19:24:50 2019        (r353284)
@@ -96,10 +96,10 @@ done
 # increment the counter to include the header line
 i=$(( $i + 1 ))
 
-COUNT=$($WC $TMPDIR/values.${TESTCASE_ID} | $AWK '{print $1}')
+COUNT=$($WC $TMPDIR/values.${TESTCASE_ID})
 if [ $i -ne $COUNT ]
 then
-       log_fail "Length of output $COUNT was not equal to number of props + 1."
+       log_fail "Length of output $COUNT was not equal to number of props + 1 
($i)."
 fi
 
 
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to