All of lore.kernel.org
 help / color / mirror / Atom feed
* [MPTCP] [PATCH 2/2] selftests:mptcp: increase timeout
@ 2019-10-22 17:06 Matthieu Baerts
  0 siblings, 0 replies; only message in thread
From: Matthieu Baerts @ 2019-10-22 17:06 UTC (permalink / raw)
  To: mptcp

[-- Attachment #1: Type: text/plain, Size: 1362 bytes --]

Instead of 45s, we switch to 450s.

In my tests, on a few years old machines with KASAN, etc. it took up to
3 minutes and 30 seconds. I then doubled the value and rounded it to 7.5
minutes.

Signed-off-by: Matthieu Baerts <matthieu.baerts(a)tessares.net>
---
 tools/testing/selftests/net/mptcp/mptcp_connect.sh | 7 +++++++
 tools/testing/selftests/net/mptcp/settings         | 1 +
 2 files changed, 8 insertions(+)
 create mode 100644 tools/testing/selftests/net/mptcp/settings

diff --git a/tools/testing/selftests/net/mptcp/mptcp_connect.sh b/tools/testing/selftests/net/mptcp/mptcp_connect.sh
index f0528df9ac31..4a29b3284a8b 100755
--- a/tools/testing/selftests/net/mptcp/mptcp_connect.sh
+++ b/tools/testing/selftests/net/mptcp/mptcp_connect.sh
@@ -1,6 +1,8 @@
 #!/bin/bash
 # SPDX-License-Identifier: GPL-2.0
 
+time_start=$(date +%s)
+
 ret=0
 sin=""
 sout=""
@@ -317,4 +319,9 @@ for sender in 1 2 3 4;do
 	run_tests ns4 ns$sender 10.0.3.1
 done
 
+time_end=$(date +%s)
+tiem_run=$((time_end-time_start))
+
+echo "Time: ${time_run} seconds"
+
 exit $ret
diff --git a/tools/testing/selftests/net/mptcp/settings b/tools/testing/selftests/net/mptcp/settings
new file mode 100644
index 000000000000..026384c189c9
--- /dev/null
+++ b/tools/testing/selftests/net/mptcp/settings
@@ -0,0 +1 @@
+timeout=450
-- 
2.20.1

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2019-10-22 17:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-22 17:06 [MPTCP] [PATCH 2/2] selftests:mptcp: increase timeout 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.