[LTP] [PATCH 2/2] testcases: netns: Handle "Operation not supported" error
Petr Vorel
pvorel@suse.cz
Thu Oct 4 15:06:11 CEST 2018
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!
Kind regards,
Petr
More information about the ltp
mailing list