linux/tools/testing/selftests/net/mptcp
Matthieu Baerts 421eea6b41 selftests: mptcp: userspace: fix v4-v6 test in v6.1
The commit 4656d72c1e ("selftests: mptcp: userspace: validate v4-v6 subflows mix")
has been backported to v6.1.8 without any conflicts. But it looks like
it was depending on a previous one:

  commit 1cc94ac1af ("selftests: mptcp: make evts global in userspace_pm")

Without it, the test fails with:

  ./userspace_pm.sh: line 788: : No such file or directory
  # ADD_ADDR4 id:14 10.0.2.1 (ns1) => ns2, reuse port        [FAIL]
  sed: can't read : No such file or directory

This dependence refactors the way the monitoring files are being
created: only once for all the different sub-tests instead of per
sub-test.

It is probably better to avoid backporting the refactoring. That is why
the new sub-test has been adapted to work using the previous way that is
still in place here in v6.1: the monitoring is started at the beginning
of each sub-test and the created file is removed at the end.

Fixes: f59549814a ("selftests: mptcp: userspace: validate v4-v6 subflows mix")
Signed-off-by: Matthieu Baerts <matthieu.baerts@tessares.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-02-22 12:59:45 +01:00
..
.gitignore selftests: mptcp: add inq test case 2021-12-07 11:36:30 -08:00
config selftests: mptcp: add infinite map testcase 2022-04-27 10:45:53 +01:00
diag.sh selftests: mptcp: more stable diag tests 2022-06-28 20:45:43 -07:00
Makefile linux-kselftest-next-5.20-rc1 2022-08-02 19:44:56 -07:00
mptcp_connect.c selftests: mptcp: update and extend fastclose test-cases 2022-10-03 11:18:53 +01:00
mptcp_connect.sh Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2022-03-03 11:55:12 -08:00
mptcp_inq.c selftests: mptcp: Initialize variables to quiet gcc 12 warnings 2022-06-28 20:45:43 -07:00
mptcp_join.sh selftests: mptcp: stop tests earlier 2023-02-14 19:11:51 +01:00
mptcp_sockopt.c selftests: mptcp: Initialize variables to quiet gcc 12 warnings 2022-06-28 20:45:43 -07:00
mptcp_sockopt.sh selftests: mptcp: run mptcp_sockopt from a new netns 2022-11-17 21:43:57 -08:00
pm_netlink.sh selftests: mptcp: add set_flags tests in pm_netlink.sh 2022-02-04 20:30:24 -08:00
pm_nl_ctl.c selftests: mptcp: update pm_nl_ctl usage header 2022-07-09 12:19:24 +01:00
settings selftests: mptcp: increase timeout to 20 minutes 2022-02-17 19:59:58 -08:00
simult_flows.sh selftests: mptcp: fix mibit vs mbit mix up 2022-11-17 21:43:58 -08:00
userspace_pm.sh selftests: mptcp: userspace: fix v4-v6 test in v6.1 2023-02-22 12:59:45 +01:00