Skip to contentSkip to conversation

tc-testing: fix arg to ip command: -s -> -n

PATCH Applied Brenda J. Butler 2 participants 2 messages Oct 30, 2017 – Oct 31, 2017

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tc-testing: fix arg to ip command: -s -> -n

Fixes 31c2611b66e0 ("selftests: Introduce a new test case to tc testsuite")
Fixes 76b903ee198d ("selftests: Introduce tc testsuite")

---

We want to run the command inside the container, not in the host.

 tools/testing/selftests/tc-testing/tdc.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
tools/testing/selftests/tc-testing/tdc.py +2 -2
index 5f11f5d7456e..a8981c5d0aaf 100755
@@ -152,11 +152,11 @@ def ns_create():
         exec_cmd(cmd, False)
         cmd = 'ip link set $DEV0 up'
         exec_cmd(cmd, False)
-        cmd = 'ip -s $NS link set $DEV1 up'
+        cmd = 'ip -n $NS link set $DEV1 up'
         exec_cmd(cmd, False)
         cmd = 'ip link set $DEV2 netns $NS'
         exec_cmd(cmd, False)
-        cmd = 'ip -s $NS link set $DEV2 up'
+        cmd = 'ip -n $NS link set $DEV2 up'
         exec_cmd(cmd, False)
 
 
Signature · 1 line
2.15.0.rc0