|
@@ -161,22 +161,6 @@ test_env() {
|
|
|
)
|
|
|
}
|
|
|
|
|
|
-error_on_leaked_containerd_shims() {
|
|
|
- if [ "$(go env GOOS)" = 'windows' ]; then
|
|
|
- return
|
|
|
- fi
|
|
|
-
|
|
|
- leftovers=$(ps -ax -o pid,cmd \
|
|
|
- | awk '$2 == "containerd-shim" && $4 ~ /.*\/bundles\/.*\/test-integration/ { print $1 }')
|
|
|
- if [ -n "$leftovers" ]; then
|
|
|
- ps aux
|
|
|
- # shellcheck disable=SC2086
|
|
|
- kill -9 ${leftovers} 2> /dev/null
|
|
|
- echo "!!!! WARNING you have left over shim(s), Cleanup your test !!!!"
|
|
|
- exit 1
|
|
|
- fi
|
|
|
-}
|
|
|
-
|
|
|
set_platform_timeout() {
|
|
|
# Test timeout.
|
|
|
if [ "${DOCKER_ENGINE_GOARCH}" = "arm64" ] || [ "${DOCKER_ENGINE_GOARCH}" = "arm" ]; then
|