blob: cc35fbb04bc0f4ddd5d713d619ba7cd709b950ef (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#!/bin/bash
set -e
# Optional: Import test library
source dev-container-features-test-lib
# Definition specific tests
check "docker-buildx" docker buildx version
check "docker-ps" docker ps
sleep 5s
# Stop docker
pkill dockerd
pkill containerd
sleep 5s
set +e
docker_ok_code="$(docker info > /dev/null 2>&1; echo $?)"
set -e
check "docker-not-running" bash -c "[[ ${docker_ok_code} == 1 ]]"
# Testing retry logic
./test-scripts/docker-test-init.sh
check "docker-started-after-retries" docker ps
# Report result
reportResults
|