From: "Ricardo B. Marlière via ltp" <ltp@lists.linux.it>
To: "Petr Vorel" <pvorel@suse.cz>, <ltp@lists.linux.it>
Subject: Re: [LTP] [PATCH] tst_net.sh: Avoid using tst_require_drivers in legacy API
Date: Wed, 07 May 2025 08:40:50 -0300 [thread overview]
Message-ID: <D9PWFBAVIR7B.A3IAMRRCLS3@suse.com> (raw)
In-Reply-To: <20250507113314.119628-1-pvorel@suse.cz>
On Wed May 7, 2025 at 8:33 AM -03, Petr Vorel wrote:
> tst_require_drivers is only in new shell API. Avoid using it in the old API.
>
> Reported-by: Ricardo B. Marlière <rbm@suse.com>
> Signed-off-by: Petr Vorel <pvorel@suse.cz>
> ---
> NOTE: there are still 9 remaining tests in the old API, e.g.
> ftp-upload-stress.sh. But instead of converting them it'd be better to
> spend time to reimplement the testcase:
> https://github.com/linux-test-project/ltp/issues/1207
>
> I'm not sure about usability of multicast tests (but converting them to
> new shell API should be easy).
>
> $ git grep -l TST_USE_LEGACY_API testcases/network/
> testcases/network/multicast/mc_cmds/mc_cmds.sh
> testcases/network/multicast/mc_commo/mc_commo.sh
> testcases/network/multicast/mc_member/mc_member.sh
> testcases/network/multicast/mc_opts/mc_opts.sh
> testcases/network/stress/dns/dns-stress.sh
> testcases/network/stress/ftp/ftp-download-stress.sh
> testcases/network/stress/ftp/ftp-upload-stress.sh
> testcases/network/stress/http/http-stress.sh
> testcases/network/tcp_cmds/tcpdump/tcpdump01.sh
>
> testcases/lib/tst_net.sh | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/testcases/lib/tst_net.sh b/testcases/lib/tst_net.sh
> index 9a8b8d7214..6c2278313c 100644
> --- a/testcases/lib/tst_net.sh
> +++ b/testcases/lib/tst_net.sh
> @@ -175,7 +175,9 @@ init_ltp_netspace()
> tst_require_cmds ip tst_ns_create tst_ns_exec tst_ns_ifmove
> tst_require_root
>
> - tst_require_drivers veth
> + if [ -z "$TST_USE_LEGACY_API" ]; then
> + tst_require_drivers veth
> + fi
Thanks for the quick fix!
Reviewed-by: Ricardo B. Marlière <rbm@suse.com>
> ROD ip link add name ltp_ns_veth1 type veth peer name ltp_ns_veth2
> pid="$(ROD tst_ns_create net,mnt)"
> mkdir -p /var/run/netns
--
Mailing list info: https://lists.linux.it/listinfo/ltp
prev parent reply other threads:[~2025-05-07 11:41 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-07 11:33 [LTP] [PATCH] tst_net.sh: Avoid using tst_require_drivers in legacy API Petr Vorel
2025-05-07 11:40 ` Ricardo B. Marlière via ltp [this message]
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=D9PWFBAVIR7B.A3IAMRRCLS3@suse.com \
--to=ltp@lists.linux.it \
--cc=pvorel@suse.cz \
--cc=rbm@suse.com \
/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.