mirror of https://github.com/docker/cli.git
149f69ca06
exec.CombinedOutput should not be used here because:
- it redirects cmd Stdout and Stderr and we want it to be the tty
- it calls cmd.Run which we already did
While at it
- use pty.Start() as it is cleaner
- make sure we don't leave a zombie running, by calling Wait() in defer
- use test.Name() for containerName
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
(cherry picked from commit
|
||
---|---|---|
.. | ||
cli-plugins | ||
container | ||
context | ||
image | ||
internal/fixtures | ||
plugin | ||
stack | ||
system | ||
testdata | ||
trust | ||
compose-env.connhelper-ssh.yaml | ||
compose-env.experimental.yaml | ||
compose-env.yaml |