9e5b86f647
In some cases, when the daemon launched by a test panics and quits, the
cleanup code would end with an error when trying to kill it by its pid.
In those cases the whole suite will end up waiting for the daemon that
we start in .integration-daemon-start to finish and we end up waiting 2
hours for the CI to cancel after a timeout.
Using process substitution makes the integration tests quit.
Signed-off-by: Djordje Lukic <djordje.lukic@docker.com>
(cherry picked from commit
|
||
---|---|---|
.. | ||
.binary | ||
.build-empty-images | ||
.go-autogen | ||
.go-autogen.ps1 | ||
.install | ||
.integration-daemon-start | ||
.integration-daemon-stop | ||
.integration-test-helpers | ||
.mkwinres | ||
binary | ||
binary-daemon | ||
binary-proxy | ||
dynbinary | ||
dynbinary-daemon | ||
dynbinary-proxy | ||
install-binary | ||
install-proxy | ||
README.md | ||
run | ||
test-docker-py | ||
test-integration | ||
test-integration-flaky | ||
test-integration-shell |
This directory holds scripts called by make.sh
in the parent directory.
Each script is named after the bundle it creates. They should not be called directly - instead, pass it as argument to make.sh, for example:
./hack/make.sh binary ubuntu
# Or to run all default bundles:
./hack/make.sh
To add a bundle:
- Create a shell-compatible file here
- Add it to $DEFAULT_BUNDLES in make.sh