1515# limitations under the License.
1616
1717ROOT=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd ) "
18- . ${ROOT} /versions
18+ . " ${ROOT} /versions"
1919# POUCH_FLAGS are the extra flags to use when start pouchd.
2020POUCH_FLAGS=${POUCH_FLAGS:- " " }
2121# RESTART_WAIT_PERIOD is the period to wait before restarting pouchd/containerd.
2222RESTART_WAIT_PERIOD=${RESTART_WAIT_PERIOD:- 10}
2323
24- POUCH_SOCK=/var/run/pouchcri.sock
24+ # POUCH_SOCK=/var/run/pouchcri.sock
2525
2626pouch_pid=
2727containerd_pid=
@@ -35,22 +35,22 @@ test_setup() {
3535 echo " containerd is not installed, please run hack/make.sh"
3636 exit 1
3737 fi
38- containerd_pid_command=` pgrep containerd`
38+ containerd_pid_command=$( pgrep containerd)
3939 containerd_pid=${containerd_pid_command}
4040 if [ ! -n " ${containerd_pid} " ]; then
41- keepalive " /usr/local/bin/containerd" ${RESTART_WAIT_PERIOD} & > ${report_dir} /containerd.log &
41+ keepalive " /usr/local/bin/containerd" " ${RESTART_WAIT_PERIOD} " & > " ${report_dir} /containerd.log" &
4242 containerd_pid=$!
4343 fi
4444 # Wait for containerd to be running by using the containerd client ctr to check the version
4545 # of the containerd server. Wait an increasing amount of time after each of five attempts
4646 readiness_check " ctr version"
4747
4848 # Start pouchd
49- pouch_pid_command=` pgrep pouchd`
49+ pouch_pid_command=$( pgrep pouchd)
5050 pouch_pid=${pouch_pid_command}
5151 if [ ! -n " ${pouch_pid} " ]; then
5252 keepalive " pouchd --enable-cri --sandbox-image=gcr.io/google_containers/pause-amd64:3.0 ${POUCH_FLAGS} " \
53- ${RESTART_WAIT_PERIOD} & > ${report_dir} /pouch.log &
53+ " ${RESTART_WAIT_PERIOD} " & > " ${report_dir} /pouch.log" &
5454 pouch_pid=$!
5555 fi
5656 readiness_check " pouch version"
@@ -71,11 +71,11 @@ test_teardown() {
7171# keepalive process is eventually killed in test_teardown.
7272keepalive () {
7373 local command=$1
74- echo ${command}
74+ echo " ${command} "
7575 local wait_period=$2
7676 while true ; do
7777 ${command}
78- sleep ${wait_period}
78+ sleep " ${wait_period} "
7979 done
8080}
8181
0 commit comments