From 8c5b85e0b4705415764d75981322c0c649dffff7 Mon Sep 17 00:00:00 2001 From: Matias Elo Date: Fri, 7 Jun 2019 15:20:17 +0300 Subject: test: performance: use correct test application return value Previously, the return value of 'tee' was used, which returned success even if the actual test application failed. Signed-off-by: Matias Elo Reviewed-by: Petri Savolainen --- test/performance/odp_l2fwd_run.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/performance/odp_l2fwd_run.sh') diff --git a/test/performance/odp_l2fwd_run.sh b/test/performance/odp_l2fwd_run.sh index 5745d3279..2d2321aa5 100755 --- a/test/performance/odp_l2fwd_run.sh +++ b/test/performance/odp_l2fwd_run.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # # Copyright (c) 2015-2018, Linaro Limited # All rights reserved. @@ -86,7 +86,7 @@ run_l2fwd() # Max 2 workers $STDBUF odp_l2fwd${EXEEXT} -i $IF1,$IF2 -m 0 -t 30 -c 2 | tee $LOG - ret=$? + ret=${PIPESTATUS[0]} kill -2 ${GEN_PID} -- cgit v1.2.3