]> asedeno.scripts.mit.edu Git - linux.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)
commit0a286afee5a1e8dca86d824209dbd3200294f86f
tree15551524050bfc11c8506aae377df6d619ce38be
parent87ebcffd82ecc58175f1667af58b8138d43fb859
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: d1f1b9cbf34c ("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