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:
parent
4fb3e998f6
commit
92f074c095
1 changed files with 1 additions and 1 deletions
|
@ -254,7 +254,7 @@ function dnet_cmd() {
|
|||
}
|
||||
|
||||
function dnet_exec() {
|
||||
docker exec -it ${1} bash -c "$2"
|
||||
docker exec -it ${1} bash -c "trap \"echo SIGHUP\" SIGHUP; $2"
|
||||
}
|
||||
|
||||
function runc() {
|
||||
|
|
Loading…
Reference in a new issue