Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Oct 2019 19:24:50 +0000 (UTC)
From:      Alan Somers <asomers@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r353284 - head/tests/sys/cddl/zfs/tests/cli_root/zpool_get
Message-ID:  <201910071924.x97JOocc051953@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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
 
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201910071924.x97JOocc051953>