1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Fix flakiness in dnet_exec

With docker 1.11 based dnet tests, the dnet_exec is sometimes exiting
with exit code 129 because the process is getting a SIGHUP. Although the
reason or source of the SIGHUP is unknown, it is making the tests flaky
because non-zero exit code. Fixed it by trapping SIGHUP inside the
container so that we can run the test code successfully.

Signed-off-by: Jana Radhakrishnan <mrjana@docker.com>
This commit is contained in:
Jana Radhakrishnan 2016-05-17 14:05:20 -07:00
parent 4fb3e998f6
commit 92f074c095

View file

@ -254,7 +254,7 @@ function dnet_cmd() {
} }
function dnet_exec() { function dnet_exec() {
docker exec -it ${1} bash -c "$2" docker exec -it ${1} bash -c "trap \"echo SIGHUP\" SIGHUP; $2"
} }
function runc() { function runc() {