From ec0e24c232cac7afa801ca8d247f212c24eb02a3 Mon Sep 17 00:00:00 2001 From: Sydney Vanda Date: Fri, 23 Sep 2016 13:51:08 -0700 Subject: Add auto-online test for ZED/FMA as part of the ZTS Automated auto-online test to go along with ZED FMA integration (PR 4673) auto_online_001.pos works with real devices (sd- and mpath) and with non-real block devices (loop) by adding a scsi_debug device to the pool Note: In order for test group to run, ZED must not currently be running. Kernel 3.16.37 or higher needed for scsi_debug to work properly If timeout occurs on test using a scsi_debug device (error noticed on Ubuntu system), a reboot might be needed in order for test to pass. (more investigation into this) Also suppressed output from is_real_device/is_loop_device/is_mpath_device - was making the log file very cluttered with useless error messages "ie /dev/mapper/sdc is not a block device" from previous patch Reviewed-by: Don Brady Reviewed-by: Brian Behlendorf Reviewed-by: David Quigley Signed-off-by: Sydney Vanda Closes #5774 --- tests/zfs-tests/include/default.cfg.in | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests/zfs-tests/include/default.cfg.in') diff --git a/tests/zfs-tests/include/default.cfg.in b/tests/zfs-tests/include/default.cfg.in index a3e4881df..f2241b541 100644 --- a/tests/zfs-tests/include/default.cfg.in +++ b/tests/zfs-tests/include/default.cfg.in @@ -34,6 +34,10 @@ # Common paths bindir=@bindir@ sbindir=@sbindir@ +etcdir=@sysconfdir@ + +# ZFS Directories +export ZEDLETDIR=${ZEDLETDIR:-${etcdir}/zfs/zed.d} # ZFS Commands export ZDB=${ZDB:-${sbindir}/zdb} @@ -47,6 +51,7 @@ export RAIDZ_TEST=${RAIDZ_TEST:-${bindir}/raidz_test} export ARC_SUMMARY=${ARC_SUMMARY:-${bindir}/arc_summary.py} export ARCSTAT=${ARCSTAT:-${bindir}/arcstat.py} export DBUFSTAT=${DBUFSTAT:-${bindir}/dbufstat.py} +export ZED=${ZED:-${sbindir}/zed} . $STF_SUITE/include/libtest.shlib -- cgit v1.2.3