From 9d0d1fdd091d754149242fd4389b964695aacf13 Mon Sep 17 00:00:00 2001 From: Amar Tumballi Date: Thu, 18 Jan 2018 23:24:04 +0530 Subject: 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 --- tests/basic/afr/lk-quorum.t | 2 ++ tests/basic/ec/ec-1468261.t | 2 ++ tests/bugs/core/bug-1432542-mpx-restart-crash.t | 2 ++ 3 files changed, 6 insertions(+) (limited to 'tests') 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 -- cgit