]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: pmtu: properly redirect stderr to /dev/null
authorSabrina Dubroca <sd@queasysnail.net>
Mon, 17 Sep 2018 13:30:06 +0000 (15:30 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 19 Sep 2018 02:53:58 +0000 (19:53 -0700)
commit9a63011c9877afbebd1c7d535c7047744dd551e9
tree15551524050bfc11c8506aae377df6d619ce38be
parent311fa62f308b6d5685f8c1f207e689c9c68874f4
selftests: pmtu: properly redirect stderr to /dev/null

The cleanup function uses "$CMD 2 > /dev/null", which doesn't actually
send stderr to /dev/null, so when the netns doesn't exist, the error
message is shown. Use "2> /dev/null" instead, so that those messages
disappear, as was intended.

Fixes: 55c6e7bb3b58 ("selftests: net: Introduce first PMTU test")
Signed-off-by: Sabrina Dubroca <sd@queasysnail.net>
Acked-by: Stefano Brivio <sbrivio@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/pmtu.sh