Skip to content

Commit d226b1d

Browse files
Cypresslindavem330
authored andcommitted
selftests: fib_tests: mute cleanup error message
In the end of the test, there will be an error message induced by the `ip netns del ns1` command in cleanup() Tests passed: 201 Tests failed: 0 Cannot remove namespace file "/run/netns/ns1": No such file or directory This can even be reproduced with just `./fib_tests.sh -h` as we're calling cleanup() on exit. Redirect the error message to /dev/null to mute it. V2: Update commit message and fixes tag. V3: resubmit due to missing netdev ML in V2 Fixes: b60417a ("selftest: fib_tests: Always cleanup before exit") Signed-off-by: Po-Hsu Lin <[email protected]> Reviewed-by: Ido Schimmel <[email protected]> Reviewed-by: Simon Horman <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent afbed3f commit d226b1d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/testing/selftests/net/fib_tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ setup()
6868
cleanup()
6969
{
7070
$IP link del dev dummy0 &> /dev/null
71-
ip netns del ns1
71+
ip netns del ns1 &> /dev/null
7272
ip netns del ns2 &> /dev/null
7373
}
7474

0 commit comments

Comments
 (0)