Skip to content

Commit 6ab70de

Browse files
Tzafrir Cohensshaulnv
authored andcommitted
Fix syntax of script run_perftest_loopback
Allow using a command line that has quotes and such.
1 parent b61a9e7 commit 6ab70de

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

run_perftest_loopback

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# trivial script to launch a loopback test on the same device
33
# example: run_perftest_loopback 0 1 ib_write_bw -s 10
44
os_type=$(uname)
5-
if [ $os_type == "FreeBSD" ]; then
5+
if [ "$os_type" = "FreeBSD" ]; then
66
cpu_bind_cmd="cpuset -l"
77
else
88
cpu_bind_cmd="taskset -c"
@@ -17,11 +17,11 @@ server_core=$1
1717
client_core=$2
1818
shift 2
1919

20-
$cpu_bind_cmd $server_core $* &
20+
$cpu_bind_cmd $server_core "$@" &
2121
#give server time to start
2222
sleep 1
2323

24-
$cpu_bind_cmd $client_core $* localhost
24+
$cpu_bind_cmd $client_core "$@" localhost
2525

2626
status=$?
2727

0 commit comments

Comments
 (0)