skip zfs tests when not building with root
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
committed by
Wolfgang Bumiller
parent
074b2cb4fa
commit
1b8efb424c
@ -2658,6 +2658,11 @@ sub volume_is_base {
|
|||||||
return $isBase;
|
return $isBase;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($> != 0) { #EUID
|
||||||
|
warn "not root, skipping zfs tests\n";
|
||||||
|
exit 0;
|
||||||
|
}
|
||||||
|
|
||||||
eval { run_command("zpool status"); };
|
eval { run_command("zpool status"); };
|
||||||
if ($@) {
|
if ($@) {
|
||||||
warn "zpool status failed, not running tests: $@\n";
|
warn "zpool status failed, not running tests: $@\n";
|
||||||
|
|||||||
Reference in New Issue
Block a user