[PATCH net-next v1 13/15] selftests: tc-testing: run dependsOn probes outside the test namespace
From: Todd Freed
Date: Tue Nov 10 2026 - 19:59:56 EST
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 <toddfreed@xxxxxxxx>
---
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