Commit 31b4e63e authored by Geliang Tang's avatar Geliang Tang Committed by Jakub Kicinski

selftests: mptcp: use max_time instead of time

'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.

Please note that here $time == $max_time so the behaviour is not changed
but the right variable is used.
Reviewed-by: default avatarMat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: default avatarGeliang Tang <geliang.tang@suse.com>
Signed-off-by: default avatarMat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 80638684
...@@ -173,7 +173,7 @@ do_transfer() ...@@ -173,7 +173,7 @@ do_transfer()
timeout ${timeout_test} \ timeout ${timeout_test} \
ip netns exec ${ns3} \ 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" & 0.0.0.0 < "$sin" > "$sout" &
local spid=$! local spid=$!
...@@ -181,7 +181,7 @@ do_transfer() ...@@ -181,7 +181,7 @@ do_transfer()
timeout ${timeout_test} \ timeout ${timeout_test} \
ip netns exec ${ns1} \ 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" & 10.0.3.3 < "$cin" > "$cout" &
local cpid=$! local cpid=$!
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment