@@ -42,7 +42,7 @@ CONTAINERD_STATE=${CONTAINERD_STATE:-"/run/containerd${CONTAINERD_TEST_SUFFIX}"}
4242# The containerd socket address.
4343CONTAINERD_SOCK=${CONTAINERD_SOCK:- unix:// ${CONTAINERD_STATE} / containerd.sock}
4444# The containerd binary name.
45- CONTAINERD_BIN=${CONTAINERD_BIN:- " containerd${CONTAINERD_TEST_SUFFIX} " }
45+ CONTAINERD_BIN=${CONTAINERD_BIN:- " containerd" } # don't need a suffix now
4646if [ -f " ${CONTAINERD_CONFIG_FILE} " ]; then
4747 CONTAINERD_FLAGS+=" --config ${CONTAINERD_CONFIG_FILE} "
4848fi
@@ -56,34 +56,26 @@ containerd_groupid=
5656test_setup () {
5757 local report_dir=$1
5858 # Start containerd
59- if [ ! -x " ${ROOT} /_output /containerd" ]; then
59+ if [ ! -x " bin /containerd" ]; then
6060 echo " containerd is not built"
6161 exit 1
6262 fi
63- # rename the test containerd binary, so that we can easily
64- # distinguish it.
65- cp ${ROOT} /_output/containerd ${ROOT} /_output/${CONTAINERD_BIN}
6663 set -m
6764 # Create containerd in a different process group
6865 # so that we can easily clean them up.
69- keepalive " sudo PATH=${PATH} ${ROOT} /_output/ ${CONTAINERD_BIN} ${CONTAINERD_FLAGS} " \
66+ keepalive " sudo PATH=${PATH} bin/containerd ${CONTAINERD_FLAGS} " \
7067 ${RESTART_WAIT_PERIOD} & > ${report_dir} /containerd.log &
7168 pid=$!
7269 set +m
7370 containerd_groupid=$( ps -o pgid= -p ${pid} )
7471 # Wait for containerd to be running by using the containerd client ctr to check the version
7572 # of the containerd server. Wait an increasing amount of time after each of five attempts
76- local -r ctr_path=$( which ctr)
77- if [ -z " ${ctr_path} " ]; then
78- echo " ctr is not in PATH"
79- exit 1
80- fi
8173 local -r crictl_path=$( which crictl)
8274 if [ -z " ${crictl_path} " ]; then
8375 echo " crictl is not in PATH"
8476 exit 1
8577 fi
86- readiness_check " sudo ${ctr_path} --address ${CONTAINERD_SOCK# " unix://" } version"
78+ readiness_check " sudo bin/ctr --address ${CONTAINERD_SOCK# " unix://" } version"
8779 readiness_check " sudo ${crictl_path} --runtime-endpoint=${CONTAINERD_SOCK} info"
8880}
8981
0 commit comments