diff mbox series

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

Message ID 20181130181444.26565-1-pvorel@suse.cz
State Accepted
Delegated to: Petr Vorel
Headers show
Series [1/1] tst_test.sh: Add info about LTP_TIMEOUT_MUL into TBROK message | expand

Commit Message

Petr Vorel Nov. 30, 2018, 6:14 p.m. UTC
Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
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(-)

Comments

Petr Vorel Dec. 17, 2018, 9:17 a.m. UTC | #1
Hi,

..
> +++ b/testcases/lib/tst_test.sh
...
> -	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
diff mbox series

Patch

diff --git a/testcases/lib/tst_test.sh b/testcases/lib/tst_test.sh
index 8bf5f84d1..c6ce7b6f3 100644
--- a/testcases/lib/tst_test.sh
+++ b/testcases/lib/tst_test.sh
@@ -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=$!
 }