moby/integration
Cory Snider f77a3274b4
[chore] clean up reexec.Init() calls
Now that most uses of reexec have been replaced with non-reexec
solutions, most of the reexec.Init() calls peppered throughout the test
suites are unnecessary. Furthermore, most of the reexec.Init() calls in
test code neglects to check the return value to determine whether to
exit, which would result in the reexec'ed subprocesses proceeding to run
the tests, which would reexec another subprocess which would proceed to
run the tests, recursively. (That would explain why every reexec
callback used to unconditionally call os.Exit() instead of returning...)

Remove unneeded reexec.Init() calls from test and example code which no
longer needs it, and fix the reexec.Init() calls which are not inert to
exit after a reexec callback is invoked.

Signed-off-by: Cory Snider <csnider@mirantis.com>
(cherry picked from commit 4e0319c878)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2023-05-11 16:31:41 +02:00
..
build Fix loop-closure bugs in tests 2023-02-15 12:44:52 -05:00
config integration: fix empty-lines (revive) 2022-09-28 01:58:50 +02:00
container Merge pull request #45353 from thaJeztah/api_container_change_type 2023-05-04 19:48:40 +02:00
daemon daemon: set docker0 subpool as the IPAM pool 2023-04-25 15:32:46 +02:00
distribution bump gotest.tools v3.0.1 for compatibility with Go 1.14 2020-02-11 00:06:42 +01:00
image List images with multiple since/before filters 2022-12-08 16:36:57 -05:00
internal Merge pull request #45392 from thaJeztah/filters_inline_and_simplify 2023-04-27 23:31:59 +00:00
network Make default options for newly created networks configurable 2023-03-01 07:58:26 +01:00
plugin [chore] clean up reexec.Init() calls 2023-05-11 16:31:41 +02:00
secret integration: fix empty-lines (revive) 2022-09-28 01:58:50 +02:00
service integration: inline filters in tests 2023-04-25 15:15:50 +02:00
session bump gotest.tools v3.0.1 for compatibility with Go 1.14 2020-02-11 00:06:42 +01:00
system integration: inline filters in tests 2023-04-25 15:15:50 +02:00
testdata/https Update test certificates 2021-05-18 09:43:21 +02:00
volume integration/volume: fix duplicate import 2023-03-14 16:22:00 +01:00
doc.go Add canonical import comment 2018-02-05 16:51:57 -05:00