All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH mptcp-next] selftests: mptcp: use max_time instead of time
@ 2022-10-22 13:35 Geliang Tang
  2022-10-22 15:42 ` selftests: mptcp: use max_time instead of time: Tests Results MPTCP CI
                   ` (4 more replies)
  0 siblings, 5 replies; 9+ messages in thread
From: Geliang Tang @ 2022-10-22 13:35 UTC (permalink / raw)
  To: mptcp; +Cc: Geliang Tang

'time' is the local variable of run_test() function, while 'max_time' is
the local variable of do_transfer() function. So in do_transfer(),
$max_time should be used, not $time.

Signed-off-by: Geliang Tang <geliang.tang@suse.com>
---
 tools/testing/selftests/net/mptcp/simult_flows.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/testing/selftests/net/mptcp/simult_flows.sh b/tools/testing/selftests/net/mptcp/simult_flows.sh
index ffa13a957a36..af70c14e0bf9 100755
--- a/tools/testing/selftests/net/mptcp/simult_flows.sh
+++ b/tools/testing/selftests/net/mptcp/simult_flows.sh
@@ -173,7 +173,7 @@ do_transfer()
 
 	timeout ${timeout_test} \
 		ip netns exec ${ns3} \
-			./mptcp_connect -jt ${timeout_poll} -l -p $port -T $time \
+			./mptcp_connect -jt ${timeout_poll} -l -p $port -T $max_time \
 				0.0.0.0 < "$sin" > "$sout" &
 	local spid=$!
 
@@ -181,7 +181,7 @@ do_transfer()
 
 	timeout ${timeout_test} \
 		ip netns exec ${ns1} \
-			./mptcp_connect -jt ${timeout_poll} -p $port -T $time \
+			./mptcp_connect -jt ${timeout_poll} -p $port -T $max_time \
 				10.0.3.3 < "$cin" > "$cout" &
 	local cpid=$!
 
-- 
2.35.3


^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2022-11-03 17:16 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-22 13:35 [PATCH mptcp-next] selftests: mptcp: use max_time instead of time Geliang Tang
2022-10-22 15:42 ` selftests: mptcp: use max_time instead of time: Tests Results MPTCP CI
2022-10-25  0:15 ` [PATCH mptcp-next] selftests: mptcp: use max_time instead of time Mat Martineau
2022-10-31 15:02   ` Matthieu Baerts
2022-11-02  0:11     ` Mat Martineau
2022-11-03 13:51       ` Matthieu Baerts
2022-10-25  2:20 ` selftests: mptcp: use max_time instead of time: Tests Results MPTCP CI
2022-10-31 15:07 ` [PATCH mptcp-next] selftests: mptcp: use max_time instead of time Matthieu Baerts
2022-11-03 17:16 ` Matthieu Baerts

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.