5
0
mirror of git://git.proxmox.com/git/pve-storage.git synced 2024-12-24 21:34:48 +03:00

skip zfs tests when not building with root

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
Dominik Csapak 2018-07-23 15:10:06 +02:00 committed by Wolfgang Bumiller
parent 074b2cb4fa
commit 1b8efb424c

View File

@ -2658,6 +2658,11 @@ sub volume_is_base {
return $isBase;
}
if ($> != 0) { #EUID
warn "not root, skipping zfs tests\n";
exit 0;
}
eval { run_command("zpool status"); };
if ($@) {
warn "zpool status failed, not running tests: $@\n";