Re: [PATCH] Skip lsns/ioctl_ns test if unshare fails

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Sorry, I missed to add my own signoff.

* Chris Hofstaedtler <zeha@xxxxxxxxxx> [210820 12:42]:
> Some parts of the Debian build infrastructure uses unshare to run the
> package build, and that appears to cause a "nested" unshare in the
> lsns/ioctl_ns test to fail. Unfortunately the tests then hang at this
> point.
> 
> Try running unshare before the actual test, and skip the test if unshare
> already fails.
> 
Signed-off-by: Chris Hofstaedtler <zeha@xxxxxxxxxx>
> ---
>  tests/ts/lsns/ioctl_ns | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/tests/ts/lsns/ioctl_ns b/tests/ts/lsns/ioctl_ns
> index ef6360607..15dd1af74 100755
> --- a/tests/ts/lsns/ioctl_ns
> +++ b/tests/ts/lsns/ioctl_ns
> @@ -34,6 +34,8 @@ ts_check_prog "mkfifo"
>  ts_check_prog "touch"
>  ts_check_prog "uniq"
>  
> +$TS_CMD_UNSHARE --user --pid --mount-proc true || ts_skip "Namespace support failure"
> +
>  ts_cd "$TS_OUTDIR"
>  
>  # The parent process receives namespaces ids via FIFO_DATA from bash
> -- 
> 2.33.0
> 



[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux