From 5cbf6db937a304c4d2b60878a2405a1e2900abdf Mon Sep 17 00:00:00 2001 From: Brian Behlendorf Date: Tue, 11 Oct 2011 14:36:42 -0700 Subject: Disable 90-zfs.rules for test suite When running the zconfig.sh, zpios-sanity.sh, and zfault.sh from the installed packages the 90-zfs.rules can cause failures. These will occur because the test suite assumes it has full control over loading/unloading the module stack. If the stack gets asynchronously loaded by the udev rule the test suite will treat it as a failure. Resolve the issue by disabling the offending rule during the tests and enabling it on exit. Signed-off-by: Brian Behlendorf --- scripts/zfault.sh | 3 +++ 1 file changed, 3 insertions(+) (limited to 'scripts/zfault.sh') diff --git a/scripts/zfault.sh b/scripts/zfault.sh index da4f16f4f..a5f1f3cb1 100755 --- a/scripts/zfault.sh +++ b/scripts/zfault.sh @@ -86,6 +86,9 @@ if [ $(id -u) != 0 ]; then die "Must run as root" fi +# Initialize the test suite +init + # Perform pre-cleanup is requested if [ ${CLEANUP} ]; then ${ZFS_SH} -u -- cgit v1.2.3