Skip to content

Commit 9f397dd

Browse files
Guillaume Naultdavem330
authored andcommitted
selftests: fib rule: Don't echo modified sysctls
Run sysctl in quiet mode. Echoing the modified sysctl doesn't bring any useful information. Signed-off-by: Guillaume Nault <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 21f25cd commit 9f397dd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tools/testing/selftests/net/fib_rule_tests.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -200,11 +200,11 @@ fib_rule4_test()
200200

201201
# need enable forwarding and disable rp_filter temporarily as all the
202202
# addresses are in the same subnet and egress device == ingress device.
203-
ip netns exec testns sysctl -w net.ipv4.ip_forward=1
204-
ip netns exec testns sysctl -w net.ipv4.conf.$DEV.rp_filter=0
203+
ip netns exec testns sysctl -qw net.ipv4.ip_forward=1
204+
ip netns exec testns sysctl -qw net.ipv4.conf.$DEV.rp_filter=0
205205
match="from $SRC_IP iif $DEV"
206206
fib_rule4_test_match_n_redirect "$match" "$match" "iif redirect to table"
207-
ip netns exec testns sysctl -w net.ipv4.ip_forward=0
207+
ip netns exec testns sysctl -qw net.ipv4.ip_forward=0
208208

209209
match="tos 0x10"
210210
fib_rule4_test_match_n_redirect "$match" "$match" "tos redirect to table"

0 commit comments

Comments
 (0)