]> git.baikalelectronics.ru Git - kernel.git/commit
selftests:mptcp: fix failure due to whitespace damage
authorMatthieu Baerts <matthieu.baerts@tessares.net>
Mon, 30 Mar 2020 14:23:54 +0000 (16:23 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 30 Mar 2020 17:25:34 +0000 (10:25 -0700)
commit77833ebe979bd6b47f5dd0b2c9c9901f17568e20
tree25e7fb706e052e80bd1fc7af1492b86a9489b64f
parent021f63be488e1f7e5a6799f9700bf209f7810b34
selftests:mptcp: fix failure due to whitespace damage

'pm_nl_ctl' was adding a trailing whitespace after having printed the
IP. But at the end, the IP element is currently always the last one.

The bash script launching 'pm_nl_ctl' had trailing whitespaces in the
expected result on purpose. But these whitespaces have been removed when
the patch has been applied upstream. To avoid trailing whitespaces in
the bash code, 'pm_nl_ctl' and expected results have now been adapted.

The MPTCP PM selftest can now pass again.

Fixes: 7254e10b6c6c (selftests: add PM netlink functional tests)
Signed-off-by: Matthieu Baerts <matthieu.baerts@tessares.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/mptcp/pm_netlink.sh
tools/testing/selftests/net/mptcp/pm_nl_ctl.c