]> git.baikalelectronics.ru Git - kernel.git/commitdiff
selftests: fib rule: Don't echo modified sysctls
authorGuillaume Nault <gnault@redhat.com>
Mon, 31 Jan 2022 15:42:09 +0000 (16:42 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 1 Feb 2022 14:14:47 +0000 (14:14 +0000)
Run sysctl in quiet mode. Echoing the modified sysctl doesn't bring any
useful information.

Signed-off-by: Guillaume Nault <gnault@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/fib_rule_tests.sh

index 6a05e81fc81dbaca4fa7a6edf25c215f74b8522e..3b0489910422d2216f6046ba1f92114135b6883c 100755 (executable)
@@ -200,11 +200,11 @@ fib_rule4_test()
 
        # need enable forwarding and disable rp_filter temporarily as all the
        # addresses are in the same subnet and egress device == ingress device.
-       ip netns exec testns sysctl -w net.ipv4.ip_forward=1
-       ip netns exec testns sysctl -w net.ipv4.conf.$DEV.rp_filter=0
+       ip netns exec testns sysctl -qw net.ipv4.ip_forward=1
+       ip netns exec testns sysctl -qw net.ipv4.conf.$DEV.rp_filter=0
        match="from $SRC_IP iif $DEV"
        fib_rule4_test_match_n_redirect "$match" "$match" "iif redirect to table"
-       ip netns exec testns sysctl -w net.ipv4.ip_forward=0
+       ip netns exec testns sysctl -qw net.ipv4.ip_forward=0
 
        match="tos 0x10"
        fib_rule4_test_match_n_redirect "$match" "$match" "tos redirect to table"