From: Petr Vorel Date: Thu, 1 Mar 2018 11:59:43 +0100 Subject: [LTP] [RFC PATCH v2 2/2] tst_netload: Exit with TCONF when netstress exit with CONF In-Reply-To: <20180301105943.5487-1-pvorel@suse.cz> References: <20180301105943.5487-1-pvorel@suse.cz> Message-ID: <20180301105943.5487-2-pvorel@suse.cz> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ltp@lists.linux.it as some issues are configuration issues. Signed-off-by: Petr Vorel --- 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