]> 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)
commit0b43d693acca3430c907394ca86dd35230acf881
tree25e7fb706e052e80bd1fc7af1492b86a9489b64f
parent95f3353d295cac99f80db6c703e614dfd370c553
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: eb654c8f1613 (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