aboutsummaryrefslogtreecommitdiff
path: root/test/performance/odp_l2fwd_run.sh
diff options
context:
space:
mode:
Diffstat (limited to 'test/performance/odp_l2fwd_run.sh')
-rwxr-xr-xtest/performance/odp_l2fwd_run.sh4
1 files changed, 2 insertions, 2 deletions
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}