zfstest: skip tests if ZFS is not available
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
committed by
Wolfgang Bumiller
parent
88ed02a391
commit
722eb1fe8a
@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user