[LTP] [PATCH 2/2] testcases: netns: Handle "Operation not supported" error
Mylène Josserand
mylene.josserand@bootlin.com
Mon Oct 8 11:28:55 CEST 2018
Hello,
On Thu, 4 Oct 2018 15:06:11 +0200
Petr Vorel <pvorel@suse.cz> wrote:
> Hi Mylène,
>
> > If there is no support for "dummy" or "veth", the tests will fail
> > with errors:
> > RTNETLINK answers: Operation not supported
> > netns_sysfs 1 TBROK: failed to add a new (host) dummy device
> > and
> > RTNETLINK answers: Operation not supported
> > netns_comm_ip_ipv6_ioctl 1 TBROK: unable to create veth pair devices
> > Cannot find device "veth0"
>
> > This commit is storing the output of the commands and verifies
> > if there is any reference to "Operation not supported".
> > This code is based on what it is already done in "ipsec_lib.sh"
> > stress test.
>
> > Signed-off-by: Mylène Josserand <mylene.josserand@bootlin.com>
>
> ..
> > diff --git a/testcases/kernel/containers/netns/netns_helper.sh b/testcases/kernel/containers/netns/netns_helper.sh
> ...
> > + tst_brkm TCONF "Command not supported (maybe missing 'veth' support)"
>
> ..
> > diff --git a/testcases/kernel/containers/netns/netns_sysfs.sh b/testcases/kernel/containers/netns/netns_sysfs.sh
> ..
> > + tst_brkm TCONF "Command not supported (maybe missing 'dummy' support)"
>
> Can you implement this patch with TST_NEEDS_DRIVERS (recently contributed by
> Alexey Kodanev)? Thanks a lot!
Yes, sure !
I will implement it but not in the next weeks because I am going to be
away until the end of November.
Best regards,
--
Mylène Josserand, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
More information about the ltp
mailing list