[LTP] [PATCH 1/2] tst_net.sh: Print netstress.c logs on unexpected error
Li Wang
liwang@redhat.com
Wed Jan 28 01:51:02 CET 2026
On Tue, Jan 27, 2026 at 9:15 PM Petr Vorel <pvorel@suse.cz> wrote:
> When there is an unexpected error, logs should be printed as well to
> know the reason:
>
> tcp_fastopen_run 1 TINFO: run server 'netstress -t 0 -d ltp_ns_veth1
> -R 3 \
> -B /tmp/LTP_tcp_fastopen_run.TpwSlSogBJ'
> tcp_fastopen_run 1 TINFO: run client 'netstress -l -t 0 -H 10.0.0.1 -d
> ltp_ns_veth2 \
> -a 2 -r 2000 -c
> /tmp/LTP_tcp_fastopen_run.TpwSlSogBJ/tst_netload.res' 5 times
> tcp_fastopen_run 1 TWARN: netstress failed, ret: 6
> tcp_fastopen_run 1 TPASS: netstress passed, median time 123 ms, data:
> 118 124 122 125
>
> While at it, factor out logging code into new function
> tst_netload_print_log().
>
> Fixes: da16b664e7 ("lib/tst_net: calc mean in tst_netload()")
> Signed-off-by: Petr Vorel <pvorel@suse.cz>
>
Reviewed-by: Li Wang <liwang@redhat.com>
--
Regards,
Li Wang
More information about the ltp
mailing list