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 ++ 1 file changed, 2 insertions(+) (limited to 'tests/basic/afr') 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 -- cgit