summaryrefslogtreecommitdiffhomepage
path: root/runsc
diff options
context:
space:
mode:
authorAndrei Vagin <avagin@google.com>2020-03-04 16:15:22 -0800
committergVisor bot <gvisor-bot@google.com>2020-03-04 16:16:35 -0800
commit80b40bbb06f3c9ca23e3ad152b481ab222ec0e47 (patch)
treea4021034ff8b19bb3812367b5f75de8f0e08f79f /runsc
parent4f43d5ecad9fc4e0541b106a874db7fcd87fde8f (diff)
tests: Don't print log messages on stdout
A parser of test results doesn't expect to see any extra messages. PiperOrigin-RevId: 298966577
Diffstat (limited to 'runsc')
-rw-r--r--runsc/container/console_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/runsc/container/console_test.go b/runsc/container/console_test.go
index c2518d52b..651615d4c 100644
--- a/runsc/container/console_test.go
+++ b/runsc/container/console_test.go
@@ -333,13 +333,13 @@ func TestJobControlSignalRootContainer(t *testing.T) {
// file. Writes after a certain point will block unless we drain the
// PTY, so we must continually copy from it.
//
- // We log the output to stdout for debugabilitly, and also to a buffer,
+ // We log the output to stderr for debugabilitly, and also to a buffer,
// since we wait on particular output from bash below. We use a custom
// blockingBuffer which is thread-safe and also blocks on Read calls,
// which makes this a suitable Reader for WaitUntilRead.
ptyBuf := newBlockingBuffer()
tee := io.TeeReader(ptyMaster, ptyBuf)
- go io.Copy(os.Stdout, tee)
+ go io.Copy(os.Stderr, tee)
// Start the container.
if err := c.Start(conf); err != nil {