summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAmar Tumballi <amarts@redhat.com>2018-01-18 23:24:04 +0530
committerXavier Hernandez <jahernan@redhat.com>2018-02-15 08:20:19 +0000
commit9d0d1fdd091d754149242fd4389b964695aacf13 (patch)
treee50a69cef28c9818b73e3601c5d5a709f4493bab /tests
parentc096bec4ec3f3ac33cc0787c60978944792e074e (diff)
tests: bring option of per test timeout
This uses 'timeout' command with 300 seconds default. Right now, there is just 1 test which takes more than that in a properly setup machine. Ideally best case is set the default to something like 30 seconds, and if a test is supposed to take more than that, owner should add a timeout line to test knowingly. That way, it makes test writers think about a time limit too. Change-Id: I747005ce1f208aeb2ecbf899e8feea487ecd21a0 Signed-off-by: Amar Tumballi <amarts@redhat.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/basic/afr/lk-quorum.t2
-rw-r--r--tests/basic/ec/ec-1468261.t2
-rw-r--r--tests/bugs/core/bug-1432542-mpx-restart-crash.t2
3 files changed, 6 insertions, 0 deletions
diff --git a/tests/basic/afr/lk-quorum.t b/tests/basic/afr/lk-quorum.t
index ad143659bbe..3364d8a6a1b 100644
--- a/tests/basic/afr/lk-quorum.t
+++ b/tests/basic/afr/lk-quorum.t
@@ -1,5 +1,7 @@
#!/bin/bash
+SCRIPT_TIMEOUT=300
+
. $(dirname $0)/../../include.rc
. $(dirname $0)/../../volume.rc
. $(dirname $0)/../../fileio.rc
diff --git a/tests/basic/ec/ec-1468261.t b/tests/basic/ec/ec-1468261.t
index d687d7bf6a0..0273102951e 100644
--- a/tests/basic/ec/ec-1468261.t
+++ b/tests/basic/ec/ec-1468261.t
@@ -4,6 +4,8 @@
# changelog enabled on EC volume.
###
+SCRIPT_TIMEOUT=300
+
. $(dirname $0)/../../include.rc
. $(dirname $0)/../../volume.rc
diff --git a/tests/bugs/core/bug-1432542-mpx-restart-crash.t b/tests/bugs/core/bug-1432542-mpx-restart-crash.t
index 5537af84fa1..2179630202d 100644
--- a/tests/bugs/core/bug-1432542-mpx-restart-crash.t
+++ b/tests/bugs/core/bug-1432542-mpx-restart-crash.t
@@ -1,5 +1,7 @@
#!/bin/bash
+SCRIPT_TIMEOUT=300
+
. $(dirname $0)/../../include.rc
. $(dirname $0)/../../volume.rc
. $(dirname $0)/../../traps.rc