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:
parent
074b2cb4fa
commit
1b8efb424c
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user