mirror of
https://github.com/torvalds/linux.git
synced 2026-11-07 06:17:02 +01:00
selftests: tc-testing: use $IP in hfsc test 8c39 setup
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: 1e24c4f2ee ("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>
Reviewed-by: Hangbin Liu <liuhangbin@kylinos.cn>
Link: https://patch.msgid.link/20261014121414.2373985-1-ivecera@redhat.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
This commit is contained in:
parent
679f6929a6
commit
b6ef0d965f
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user