Skip to contentSkip to conversation

tst_test.sh: Add info about LTP_TIMEOUT_MUL into TBROK message

PATCH New Petr Vorel 1 participant 2 messages Nov 30, 2018 – Dec 17, 2018

lore
Share & tools
lore

Petr Vorel

author
#0 lore raw

PATCH 1/1 tst_test.sh: Add info about LTP_TIMEOUT_MUL into TBROK message

---
Hi Alexey,

maybe it makes sense to add info about LTP_TIMEOUT_MUL variable. I'm sorry, I didn't notice before.
This is the same message as it's in C API.

Kind regards,
Petr

---
 testcases/lib/tst_test.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
testcases/lib/tst_test.sh +1 -1
index 8bf5f84d1..c6ce7b6f3 100644
@@ -371,7 +371,7 @@ _tst_setup_timer()
 
 	tst_res TINFO "timeout per run is ${h}h ${m}m ${s}s"
 
-	sleep $sec && tst_res TBROK "test killed, timeout!" && kill -9 -$pid &
+	sleep $sec && tst_res TBROK "test killed, timeout! If you are running on slow machine, try exporting LTP_TIMEOUT_MUL > 1" && kill -9 -$pid &
 
 	_tst_setup_timer_pid=$!
 }
Signature · 1 line
2.19.1
author
#1 lore raw

PATCH 1/1 tst_test.sh: Add info about LTP_TIMEOUT_MUL into TBROK message

Hi,

..

Quoted 1 line

+++ b/testcases/lib/tst_test.sh

...

testcases/lib/tst_test.sh _tst_setup_timer() · line 374

Quoted 2 lines
testcases/lib/tst_test.sh +1 -1
-	sleep $sec && tst_res TBROK "test killed, timeout!" && kill -9 -$pid &
+	sleep $sec && tst_res TBROK "test killed, timeout! If you are running on slow machine, try exporting LTP_TIMEOUT_MUL > 1" && kill -9 -$pid &

FYI: pushed.

Kind regards,
Petr