We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b61a9e7 commit 6ab70deCopy full SHA for 6ab70de
run_perftest_loopback
@@ -2,7 +2,7 @@
2
# trivial script to launch a loopback test on the same device
3
# example: run_perftest_loopback 0 1 ib_write_bw -s 10
4
os_type=$(uname)
5
-if [ $os_type == "FreeBSD" ]; then
+if [ "$os_type" = "FreeBSD" ]; then
6
cpu_bind_cmd="cpuset -l"
7
else
8
cpu_bind_cmd="taskset -c"
@@ -17,11 +17,11 @@ server_core=$1
17
client_core=$2
18
shift 2
19
20
-$cpu_bind_cmd $server_core $* &
+$cpu_bind_cmd $server_core "$@" &
21
#give server time to start
22
sleep 1
23
24
-$cpu_bind_cmd $client_core $* localhost
+$cpu_bind_cmd $client_core "$@" localhost
25
26
status=$?
27
0 commit comments