[Fuego] [PATCH 3/5] iperf3: save json file instead of using the stdout

Daniel Sangorrin daniel.sangorrin at toshiba.co.jp
Fri Mar 9 05:50:28 UTC 2018


On certain boards/kernels, when using the UDP test/spec, some
extra messages (about not having pacing support) where
sent to the stdout polluting the json output. Fix that by
storing the json output on its own file.

Signed-off-by: Daniel Sangorrin <daniel.sangorrin at toshiba.co.jp>
---
 engine/tests/Benchmark.iperf3/fuego_test.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/engine/tests/Benchmark.iperf3/fuego_test.sh b/engine/tests/Benchmark.iperf3/fuego_test.sh
index 9f10743..4a6e98b 100755
--- a/engine/tests/Benchmark.iperf3/fuego_test.sh
+++ b/engine/tests/Benchmark.iperf3/fuego_test.sh
@@ -30,7 +30,8 @@ function test_run {
     fi
 
     echo "Starting iperf3 client on the target (CLIENT IP: $IPADDR)"
-    report "cd $BOARD_TESTDIR/fuego.$TESTDIR; ./iperf3 -V -c $IPERF3_SERVER_IP -f M -J --get-server-output $BENCHMARK_IPERF3_CLIENT_PARAMS" $BOARD_TESTDIR/fuego.$TESTDIR/${TESTDIR}.log
+    cmd "cd $BOARD_TESTDIR/fuego.$TESTDIR; ./iperf3 -V -c $IPERF3_SERVER_IP -f M -J --logfile $BOARD_TESTDIR/fuego.$TESTDIR/output.json --get-server-output $BENCHMARK_IPERF3_CLIENT_PARAMS"
+    report "cat $BOARD_TESTDIR/fuego.$TESTDIR/output.json"
 }
 
 function test_cleanup {
-- 
2.7.4




More information about the Fuego mailing list