[LTP] [PATCH 1/3] tst_test.sh: Run cleanup also after test timeout

Cyril Hrubis chrubis@suse.cz
Wed Apr 7 14:28:05 CEST 2021


Hi!
>  _tst_cleanup_timer()
>  {
> @@ -442,6 +442,26 @@ _tst_multiply_timeout()
>  	return 0
>  }
>  
> +_tst_kill_test()
> +{
> +	local i=10
> +
> +	tst_res TBROK "Test timeouted, sending SIGTERM! If you are running on slow machine, try exporting LTP_TIMEOUT_MUL > 1"
                                                   ^
						   SIGINT?
> +	kill -INT -$pid
> +	tst_sleep 100ms

Other than that it looks good,

Reviewed-by: Cyril Hrubis <chrubis@suse.cz>

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list