moby/libnetwork/cmd
Cory Snider 4e0319c878 [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>
2023-05-09 19:13:17 -04:00
..
diagnostic all: replace strings.Replace with strings.ReplaceAll 2022-05-09 19:45:40 +08:00
networkdb-test fix formatting of "nolint" tags for go1.19 2022-07-13 22:31:53 +02:00
readme_test [chore] clean up reexec.Init() calls 2023-05-09 19:13:17 -04:00
ssd fix typo (cluser -> cluster) 2022-06-27 15:12:14 +02:00