Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Aug 2017 23:04:24 +0000 (UTC)
From:      Alan Somers <asomers@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-projects@freebsd.org
Subject:   svn commit: r322070 - projects/zfsd/head/tests/sys/cddl/zfs/include
Message-ID:  <201708042304.v74N4OPQ083206@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: asomers
Date: Fri Aug  4 23:04:24 2017
New Revision: 322070
URL: https://svnweb.freebsd.org/changeset/base/322070

Log:
  Fix an uninitialized variable in the ZFS test suite
  
  tests/sys/cddl/zfs/include/libtest.kshlib
  	Fix an uninitialized variable when running the ZFS test suite
  	without any assigned disks
  
  Sponsored by:	Spectra Logic Corp

Modified:
  projects/zfsd/head/tests/sys/cddl/zfs/include/libtest.kshlib

Modified: projects/zfsd/head/tests/sys/cddl/zfs/include/libtest.kshlib
==============================================================================
--- projects/zfsd/head/tests/sys/cddl/zfs/include/libtest.kshlib	Fri Aug  4 23:01:13 2017	(r322069)
+++ projects/zfsd/head/tests/sys/cddl/zfs/include/libtest.kshlib	Fri Aug  4 23:04:24 2017	(r322070)
@@ -2016,6 +2016,7 @@ function set_disks
 
 	if (( ${#disk_array[*]} <= 1 )); then
 		export DISK=${DISKS%% *}
+		export DISK_ARRAY_NUM=1
 	else 
 		export DISK=""
         	typeset -i i=0



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