Re: [Fuego] [PATCH] iperf3: use 'get_program_path' in test_run function
<[email protected]> Fri, 5 Nov 2021 16:56:06 +0000
| Newsgroups | dev.linux.lists.fuego |
|---|---|
| Message-ID | <BYAPR13MB250395A1B98EDBAE13D61FBFFD8E9@BYAPR13MB2503.namprd13.prod.outlook.com> |
This looks good. applied. -- Tim > -----Original Message----- > From: [email protected] <[email protected]> > Sent: Tuesday, November 2, 2021 3:59 AM > To: Bird, Tim <[email protected]> > Cc: venkata pyla <[email protected]>; [email protected]; [email protected]; > [email protected]; [email protected] > Subject: [PATCH] iperf3: use 'get_program_path' in test_run function > > 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 >