[Fuego] [PATCH] iperf3: use 'get_program_path' in test_run function
[email protected] Tue, 2 Nov 2021 15:29:00 +0530
| Newsgroups | dev.linux.lists.fuego |
|---|---|
| Message-ID | <[email protected]> |
From: venkata pyla <[email protected]> In order to use the test programs installed in the board's default PATH use get_program_path function, which will find the program in the PATH location or in the board test directory. Signed-off-by: venkata pyla <[email protected]> --- tests/Benchmark.iperf3/fuego_test.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/Benchmark.iperf3/fuego_test.sh b/tests/Benchmark.iperf3/fuego_test.sh index 12650eb..dc0e7dc 100755 --- a/tests/Benchmark.iperf3/fuego_test.sh +++ b/tests/Benchmark.iperf3/fuego_test.sh @@ -23,7 +23,8 @@ function test_run { echo "Starting iperf3 client on the target (CLIENT IP: $IPADDR, SERVER IP: $IPERF3_SERVER_IP)" json_file=$(mktemp) for i in 1 2 3 4 5 6; do - cmd "$BOARD_TESTDIR/fuego.$TESTDIR/iperf3 -V -c $IPERF3_SERVER_IP -J --logfile $BOARD_TESTDIR/fuego.$TESTDIR/output.json --get-server-output $BENCHMARK_IPERF3_CLIENT_PARAMS" && break || \ + get_program_path iperf3 + cmd "$PROGRAM_IPERF3 -V -c $IPERF3_SERVER_IP -J --logfile $BOARD_TESTDIR/fuego.$TESTDIR/output.json --get-server-output $BENCHMARK_IPERF3_CLIENT_PARAMS" && break || \ echo "The server seems busy running another iperf3 test. Trying again in 30 seconds" # that was our last try so abort the job -- 2.20.1