* [PATCH net] selftests: tc-testing: use $IP in hfsc test 8c39 setup
@ 2026-10-14 12:14 Ivan Vecera
2026-10-14 21:24 ` Victor Nogueira
0 siblings, 1 reply; 2+ messages in thread
From: Ivan Vecera @ 2026-10-14 12:14 UTC (permalink / raw)
To: netdev
Cc: Jamal Hadi Salim, Jiri Pirko, Shuah Khan, Victor Nogueira,
Jakub Kicinski, open list:KERNEL SELFTEST FRAMEWORK, open list
Test 8c39 brings up lo with a bare "ip" command. nsPlugin runs it as
"$IP netns exec <ns> ip ...", and as tdc runs commands with an empty
environment, "ip netns exec" searches only the default execvp() path
(/bin:/usr/bin). On systems that install ip only in /sbin, like Fedora,
the setup fails:
# ./tdc.py -e 8c39
Test 8c39: HFSC classify walk still reaches leaf after lateral drift
-----> prepare stage *** Could not execute: "ip link set lo up"
-----> prepare stage *** Error message: "exec of "ip" failed: No such file or directory
Use $IP like all other tdc tests do.
Fixes: 1e24c4f2ee44 ("selftests: tc-testing: add a lateral-drift hfsc classify-walk test")
Signed-off-by: Ivan Vecera <ivecera@redhat.com>
---
tools/testing/selftests/tc-testing/tc-tests/qdiscs/hfsc.json | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/testing/selftests/tc-testing/tc-tests/qdiscs/hfsc.json b/tools/testing/selftests/tc-testing/tc-tests/qdiscs/hfsc.json
index 4f6bbb8b57f9..557730eef055 100644
--- a/tools/testing/selftests/tc-testing/tc-tests/qdiscs/hfsc.json
+++ b/tools/testing/selftests/tc-testing/tc-tests/qdiscs/hfsc.json
@@ -181,7 +181,7 @@
"requires": "nsPlugin"
},
"setup": [
- "ip link set lo up",
+ "$IP link set lo up",
"$TC qdisc add dev lo handle 1: root hfsc default 30",
"$TC class add dev lo parent 1: classid 1:1 hfsc rt m2 100kbit",
"$TC class add dev lo parent 1:1 classid 1:10 hfsc rt m2 50kbit",
--
2.56.0
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH net] selftests: tc-testing: use $IP in hfsc test 8c39 setup
2026-10-14 12:14 [PATCH net] selftests: tc-testing: use $IP in hfsc test 8c39 setup Ivan Vecera
@ 2026-10-14 21:24 ` Victor Nogueira
0 siblings, 0 replies; 2+ messages in thread
From: Victor Nogueira @ 2026-10-14 21:24 UTC (permalink / raw)
To: Ivan Vecera
Cc: netdev, Jamal Hadi Salim, Jiri Pirko, Shuah Khan, Jakub Kicinski,
open list:KERNEL SELFTEST FRAMEWORK, open list
On Wed, Oct 14, 2026 at 9:14 AM Ivan Vecera <ivecera@redhat.com> wrote:
>
> Test 8c39 brings up lo with a bare "ip" command. nsPlugin runs it as
> "$IP netns exec <ns> ip ...", and as tdc runs commands with an empty
> environment, "ip netns exec" searches only the default execvp() path
> (/bin:/usr/bin). On systems that install ip only in /sbin, like Fedora,
> the setup fails:
>
> # ./tdc.py -e 8c39
> Test 8c39: HFSC classify walk still reaches leaf after lateral drift
> -----> prepare stage *** Could not execute: "ip link set lo up"
> -----> prepare stage *** Error message: "exec of "ip" failed: No such file or directory
>
> Use $IP like all other tdc tests do.
>
> Fixes: 1e24c4f2ee44 ("selftests: tc-testing: add a lateral-drift hfsc classify-walk test")
> Signed-off-by: Ivan Vecera <ivecera@redhat.com>
Reviewed-by: Victor Nogueira <victor@mojatatu.com>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-10-14 21:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-14 12:14 [PATCH net] selftests: tc-testing: use $IP in hfsc test 8c39 setup Ivan Vecera
2026-10-14 21:24 ` Victor Nogueira
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox