Hi!
> Function tst_timeout() added into LTP test interface:
> 
>       tst_timeout "command arg1 arg2 ..." timeout
> 
> Function enables waiting for specified command for timeout
> seconds. Example usage:
> 
>       cmd_output=$(tst_timeout "ping -c 3 localhost" 5)
>       if [ $? -ne 0 ]; then
>               tst_brkm TBROK "timeout reached!"
>       fi
> 
> where $cmd_output contains stdout and stderr of ping command.

Pushed, thanks.

It would be a nice to have a paragraph about the usage in the test
writing guidelines. Can you send a patch for that too?

-- 
Cyril Hrubis
chru...@suse.cz

------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to