commit 7e62f9046cca047a48e65544a2ecb7e9e7efccad
tree cb717e9be7ded9ce8e1c77f1bc2828754b38ecbd
parent 7f327cbd5b14176500de36def0f2fc00517f099d
author Petr Vorel <pvorel@suse.cz> 2026-01-27 14:03:18 +0100
committer Petr Vorel <pvorel@suse.cz> 2026-01-29 22:30:35 +0100

    tst_net.sh: Fix tst_brk() use in tst_netload_brk()
    
    Since 1878502f63 ("tst_test.sh/tst_brk(): Allow only TBROK and TCONF")
    it's not possible to use tst_brk() with TFAIL. Call tst_res() followed
    by tst_brk() for TFAIL/TWARN.
    
    Also convert failure on missing file to TBROK.
    
    Link: https://lore.kernel.org/ltp/20260127131427.146592-2-pvorel@suse.cz/
    Reviewed-by: Li Wang <liwang@redhat.com>
    Reviewed-by: Cyril Hrubis <chrubis@suse.cz>
    Signed-off-by: Petr Vorel <pvorel@suse.cz>


:100644 100644 20f669f56ee7451cdbb4c96b2c15a3bf87b22ef3 76f6b20e31d3aed0c94c7cf9bfca48ab74a16503 M	testcases/lib/tst_net.sh
commit 7f327cbd5b14176500de36def0f2fc00517f099d
tree 08285e3200fde2d9fac820405bf6dc8867210a5e
parent 648c819005e16301b361a38c315baaddbbd6f1a5
author Petr Vorel <pvorel@suse.cz> 2026-01-27 10:32:51 +0100
committer Petr Vorel <pvorel@suse.cz> 2026-01-29 22:28:45 +0100

    tst_net.sh: Print netstress.c logs on unexpected error
    
    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().
    
    Link: https://lore.kernel.org/ltp/20260127131427.146592-1-pvorel@suse.cz/
    Fixes: da16b664e7 ("lib/tst_net: calc mean in tst_netload()")
    Reviewed-by: Li Wang <liwang@redhat.com>
    Reviewed-by: Cyril Hrubis <chrubis@suse.cz>
    Signed-off-by: Petr Vorel <pvorel@suse.cz>


:100644 100644 ec49f5fab91a32fd44957b6765b4b33066c3f598 20f669f56ee7451cdbb4c96b2c15a3bf87b22ef3 M	testcases/lib/tst_net.sh
