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
|
||
---|---|---|
.. | ||
testdata | ||
attach_test.go | ||
create_test.go | ||
kill_test.go | ||
main_test.go | ||
proxy_signal_test.go | ||
run_test.go |