[LTP] [RFC PATCH v2 2/2] tst_netload: Exit with TCONF when netstress exit with CONF
Petr Vorel
pvorel@suse.cz
Thu Mar 1 11:59:43 CET 2018
as some issues are configuration issues.
Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
testcases/lib/test_net.sh | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/testcases/lib/test_net.sh b/testcases/lib/test_net.sh
index 95e13ee03..db9bb028d 100644
--- a/testcases/lib/test_net.sh
+++ b/testcases/lib/test_net.sh
@@ -453,7 +453,9 @@ tst_netload()
tst_rhost_run -c "netstress $s_opts" > tst_netload.log 2>&1
if [ $? -ne 0 ]; then
cat tst_netload.log
- tst_brkm TFAIL "server failed"
+ local ttype="TFAIL"
+ grep -e 'CONF:' tst_netload.log && ttype="TCONF"
+ tst_brkm $ttype "server failed"
fi
local port=$(tst_rhost_run -s -c "cat $TST_TMPDIR/netstress_port")
--
2.16.2
More information about the ltp
mailing list