mirror of
https://github.com/clearlinux/docker.git
synced 2026-09-06 13:41:36 +00:00
Merge pull request #7191 from tiborvass/test-daemon
Add Daemon restart test along with Daemon utils
This commit is contained in:
@@ -156,6 +156,7 @@ go_test_dir() {
|
||||
testcover=( -cover -coverprofile "$coverprofile" $coverpkg )
|
||||
fi
|
||||
(
|
||||
export DEST
|
||||
echo '+ go test' $TESTFLAGS "${DOCKER_PKG}${dir#.}"
|
||||
cd "$dir"
|
||||
go test ${testcover[@]} -ldflags "$LDFLAGS" "${BUILDFLAGS[@]}" $TESTFLAGS
|
||||
|
||||
@@ -38,7 +38,9 @@ exec > >(tee -a $DEST/test.log) 2>&1
|
||||
|
||||
bundle_test_integration_cli
|
||||
|
||||
DOCKERD_PID=$(set -x; cat $DEST/docker.pid)
|
||||
( set -x; kill $DOCKERD_PID )
|
||||
wait $DOCKERD_PID || true
|
||||
for pid in $(find "$DEST" -name docker.pid); do
|
||||
DOCKER_PID=$(set -x; cat "$pid")
|
||||
( set -x; kill $DOCKER_PID )
|
||||
wait $DOCKERD_PID || true
|
||||
done
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user