[LTP] [PATCH] Use LTP_TIMEOUT_MUL in TST_RETRY_FN()
Clemens Famulla-Conrad
cfamullaconrad@suse.de
Wed Sep 11 10:55:36 CEST 2019
We discovered timeout problems for well known candidates.
Most of the time we already use LTP_TIMEOUT_MUL in other cases to
globally increase timeout value. So doing it for this function as well.
Signed-off-by: Clemens Famulla-Conrad <cfamullaconrad@suse.de>
---
testcases/lib/tst_test.sh | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/testcases/lib/tst_test.sh b/testcases/lib/tst_test.sh
index e0b24c6b9..80b8871cb 100644
--- a/testcases/lib/tst_test.sh
+++ b/testcases/lib/tst_test.sh
@@ -162,9 +162,11 @@ EXPECT_FAIL()
TST_RETRY_FN_EXP_BACKOFF()
{
+ LTP_TIMEOUT_MUL=${LTP_TIMEOUT_MUL:-1}
+
local tst_fun="$1"
local tst_exp=$2
- local tst_sec=$(expr $3 \* 1000000)
+ local tst_sec=$(expr $3 \* 1000000 \* $LTP_TIMEOUT_MUL)
local tst_delay=1
if [ $# -ne 3 ]; then
--
2.16.4
More information about the ltp
mailing list