From: Petr Vorel <pvorel@suse.cz>
To: ltp@lists.linux.it
Subject: [LTP] [PATCH 2/2] testcases: netns: Handle "Operation not supported" error
Date: Thu, 4 Oct 2018 15:06:11 +0200 [thread overview]
Message-ID: <20181004130611.GB32169@dell5510> (raw)
In-Reply-To: <20180802141251.1571-2-mylene.josserand@bootlin.com>
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
next prev parent reply other threads:[~2018-10-04 13:06 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-08-02 14:12 [LTP] [PATCH 1/2] testcases: netns: Check TUN support enabled =?unknown-8bit?q?Myl=C3=A8ne?= Josserand
2018-08-02 14:12 ` [LTP] [PATCH 2/2] testcases: netns: Handle "Operation not supported" error =?unknown-8bit?q?Myl=C3=A8ne?= Josserand
2018-08-08 11:16 ` Alexey Kodanev
2018-08-08 13:05 ` Cyril Hrubis
2018-08-08 13:31 ` Thomas Petazzoni
2018-08-08 14:06 ` Cyril Hrubis
2018-08-08 13:53 ` Alexey Kodanev
2018-08-08 14:08 ` Cyril Hrubis
2018-10-04 13:06 ` Petr Vorel [this message]
2018-10-08 9:28 ` =?unknown-8bit?q?Myl=C3=A8ne?= Josserand
2018-10-08 10:15 ` Petr Vorel
2018-10-04 12:59 ` [LTP] [PATCH 1/2] testcases: netns: Check TUN support enabled Petr Vorel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20181004130611.GB32169@dell5510 \
--to=pvorel@suse.cz \
--cc=ltp@lists.linux.it \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.