zfstest: skip tests if ZFS is not available

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
Fabian Grünbichler
2017-05-17 11:42:35 +02:00
committed by Wolfgang Bumiller
parent 88ed02a391
commit 722eb1fe8a

View File

@ -2658,6 +2658,11 @@ sub volume_is_base {
return $isBase;
}
eval { run_command("zpool status"); };
if ($@) {
warn "zpool status failed, not running tests: $@\n";
exit 0;
}
setup_zpool();