[LTP] [PATCH v2 3/3] tst_netload: Exit with TCONF when netstress exit with CONF

Petr Vorel pvorel@suse.cz
Tue Mar 13 16:01:11 CET 2018


as some issues are configuration issues.

Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
Alexey, I kept grepping as in v1, see:
http://lists.linux.it/pipermail/ltp/2018-March/007240.html
---
 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 0e78dfd8b..203464f0d 100644
--- a/testcases/lib/test_net.sh
+++ b/testcases/lib/test_net.sh
@@ -459,7 +459,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