]> www.infradead.org Git - users/jedix/linux-maple.git/commit
selftests: mptcp: info: hide 'grep: write error' warnings
authorMatthieu Baerts (NGI0) <matttbe@kernel.org>
Fri, 2 May 2025 12:29:21 +0000 (14:29 +0200)
committerJakub Kicinski <kuba@kernel.org>
Mon, 5 May 2025 23:51:59 +0000 (16:51 -0700)
commit6d0eb15c65019b2b17bd6db9b32a60a219e40078
treee7f89c6d0580108e99c6efeb56fd302c14e00e17
parentac8f09b9210c48934c78fdc6bc167e660eaac928
selftests: mptcp: info: hide 'grep: write error' warnings

mptcp_lib_get_info_value() will only print the first entry that match
the filter because of the ';q' at the end. As a consequence, the 'sed'
command could finish before the previous 'grep' one and print a 'write
error' warning because it is trying to write data to the closed pipe.

Such warnings are not interesting, they can be hidden by muting stderr
here for grep.

While at it, clearly indicate that mptcp_lib_get_info_value() will only
print the first matched entry to avoid confusions later on.

Reviewed-by: Mat Martineau <martineau@kernel.org>
Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Link: https://patch.msgid.link/20250502-net-next-mptcp-sft-inc-cover-v1-1-68eec95898fb@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/mptcp/mptcp_lib.sh