[pve-devel] applied: [PATCH storage] skip zfs tests when not building with root

Wolfgang Bumiller w.bumiller at proxmox.com
Wed Aug 1 10:47:43 CEST 2018


applied, but moved it to before testing `zpool status` a few lines
above, and added a newline to the warning

On Mon, Jul 23, 2018 at 03:10:06PM +0200, Dominik Csapak wrote:
> Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
> ---
>  test/run_test_zfspoolplugin.pl | 5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/test/run_test_zfspoolplugin.pl b/test/run_test_zfspoolplugin.pl
> index f6218b1..c530be6 100755
> --- a/test/run_test_zfspoolplugin.pl
> +++ b/test/run_test_zfspoolplugin.pl
> @@ -2664,6 +2664,11 @@ if ($@) {
>      exit 0;
>  }
>  
> +if ($> != 0) { #EUID
> +    warn 'not root, skipping zfs tests';
> +    exit 0;
> +}
> +
>  setup_zpool();
>  
>  my $time = time;
> -- 
> 2.11.0




More information about the pve-devel mailing list