github.com/duglin/docker@v1.13.1/hack/make/test-integration-cli (about) 1 #!/bin/bash 2 set -e 3 4 source hack/make/.integration-test-helpers 5 6 # subshell so that we can export PATH without breaking other things 7 ( 8 bundle .integration-daemon-start 9 10 bundle .integration-daemon-setup 11 12 bundle_test_integration_cli 13 14 bundle .integration-daemon-stop 15 16 if [ "$(go env GOOS)" != 'windows' ] 17 then 18 leftovers=$(ps -ax -o pid,cmd | awk '$2 == "docker-containerd-shim" && $4 ~ /.*\/bundles\/.*\/test-integration-cli/ { print $1 }') 19 if [ -n "$leftovers" ] 20 then 21 ps aux 22 kill -9 $leftovers 2> /dev/null 23 echo "!!!! WARNING you have left over shim(s), Cleanup your test !!!!" 24 exit 1 25 fi 26 fi 27 28 ) 2>&1 | tee -a "$DEST/test.log"