tests: fix all the things

This fixes all of the tests that were broken as part of the console
rewrite. This includes fixing the integration tests that used TTY
handling inside libcontainer, as well as the bats integration tests that
needed to be rewritten to use recvtty (as they rely on detached
containers that are running).

This patch is part of the console rewrite patchset.

Signed-off-by: Aleksa Sarai <asarai@suse.de>
This commit is contained in:
Aleksa Sarai
2016-09-06 22:40:01 +10:00
parent bda3055055
commit 972c176ae4
20 changed files with 91 additions and 65 deletions
+3 -3
View File
@@ -36,13 +36,13 @@ type Process struct {
Cwd string
// Stdin is a pointer to a reader which provides the standard input stream.
Stdin *os.File
Stdin io.Reader
// Stdout is a pointer to a writer which receives the standard output stream.
Stdout *os.File
Stdout io.Writer
// Stderr is a pointer to a writer which receives the standard error stream.
Stderr *os.File
Stderr io.Writer
// ExtraFiles specifies additional open files to be inherited by the container
ExtraFiles []*os.File