]> git.proxmox.com Git - pve-storage.git/commitdiff
zfstest: skip tests if ZFS is not available
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Wed, 17 May 2017 09:42:35 +0000 (11:42 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Tue, 6 Jun 2017 14:15:42 +0000 (16:15 +0200)
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
test/run_test_zfspoolplugin.pl

index f07eacc69731b2f24eb063625bd0f69de459be69..b70aad8971f63eb2696e6a440644ea9d887dc0d4 100755 (executable)
@@ -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();