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)
commit3aeaaa59fd69a16d3d404c062a29fad2c81fb5c7
tree25e7fb706e052e80bd1fc7af1492b86a9489b64f
parent76dcbd2370598bc0f3d6b19a049359dc356cc6d4
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: eedbc685321b (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