[PATCH net-next v1 13/15] selftests: tc-testing: run dependsOn probes outside the test namespace

From
Todd Freed <hidden>
Date
2026-11-11 00:56:45
Also in
bpf, linux-doc, linux-kselftest, linux-rdma, lkml
Reply to
Todd Freed, 2026-11-11
a test's dependsOn probe runs as an execute stage command, but is run
before the test's namespace is created. nsPlugin prefixes the command
with "ip netns exec tcut", which causes the command to fail. this makes
every test with a probe that requires nsPlugin skipped currently. for
example the mirred blockid tests and the tunnel_key nofrag test.

probes are meant to check what tc and the kernel supports, not anything
in the test's namespace. run them as their own stage ("probe"), which
makes them run in the base namespace.

Signed-off-by: Todd Freed <redacted>
---
 tools/testing/selftests/tc-testing/tdc.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/testing/selftests/tc-testing/tdc.py b/tools/testing/selftests/tc-testing/tdc.py
index 511d66c36a2a..541caf984519 100755
--- a/tools/testing/selftests/tc-testing/tdc.py
+++ b/tools/testing/selftests/tc-testing/tdc.py
@@ -399,7 +399,7 @@ def run_one_test(pm, args, index, tidx):
     if 'dependsOn' in tidx:
         if (args.verbose > 0):
             print('probe command for test skip')
-        (p, procout) = exec_cmd(tidx, args, pm, 'execute', tidx['dependsOn'])
+        (p, procout) = exec_cmd(tidx, args, pm, 'probe', tidx['dependsOn'])
         if p:
             if (p.returncode != 0):
                 res = TestResult(tidx['id'], tidx['name'])
-- 
2.53.0-Meta
Thread (38 messages) 38 messages, 4 authors, last reply 1d ago
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help