Skip to content

Commit 22b2955

Browse files
Paolo Abenikuba-moo
authored andcommitted
selftests: mptcp: gives slow test-case more time
On slow or busy VM, some test-cases still fail because the data transfer completes before the endpoint manipulation actually took effect. Address the issue by artificially increasing the runtime for the relevant test-cases. Fixes: ef36001 ("selftests: mptcp: signal addresses testcases") Closes: multipath-tcp/mptcp_net-next#309 Reviewed-by: Mat Martineau <[email protected]> Signed-off-by: Paolo Abeni <[email protected]> Signed-off-by: Mat Martineau <[email protected]> Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 847ccab commit 22b2955

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tools/testing/selftests/net/mptcp/mptcp_join.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2152,7 +2152,7 @@ remove_tests()
21522152
pm_nl_set_limits $ns2 1 3
21532153
pm_nl_add_endpoint $ns2 10.0.3.2 flags subflow
21542154
pm_nl_add_endpoint $ns2 10.0.4.2 flags subflow
2155-
run_tests $ns1 $ns2 10.0.1.1 0 -1 -2 slow
2155+
run_tests $ns1 $ns2 10.0.1.1 0 -1 -2 speed_10
21562156
chk_join_nr 3 3 3
21572157
chk_add_nr 1 1
21582158
chk_rm_nr 2 2
@@ -2165,7 +2165,7 @@ remove_tests()
21652165
pm_nl_add_endpoint $ns1 10.0.3.1 flags signal
21662166
pm_nl_add_endpoint $ns1 10.0.4.1 flags signal
21672167
pm_nl_set_limits $ns2 3 3
2168-
run_tests $ns1 $ns2 10.0.1.1 0 -3 0 slow
2168+
run_tests $ns1 $ns2 10.0.1.1 0 -3 0 speed_10
21692169
chk_join_nr 3 3 3
21702170
chk_add_nr 3 3
21712171
chk_rm_nr 3 3 invert
@@ -2178,7 +2178,7 @@ remove_tests()
21782178
pm_nl_add_endpoint $ns1 10.0.3.1 flags signal
21792179
pm_nl_add_endpoint $ns1 10.0.14.1 flags signal
21802180
pm_nl_set_limits $ns2 3 3
2181-
run_tests $ns1 $ns2 10.0.1.1 0 -3 0 slow
2181+
run_tests $ns1 $ns2 10.0.1.1 0 -3 0 speed_10
21822182
chk_join_nr 1 1 1
21832183
chk_add_nr 3 3
21842184
chk_rm_nr 3 1 invert

0 commit comments

Comments
 (0)