summaryrefslogtreecommitdiffhomepage
path: root/runsc
diff options
context:
space:
mode:
authorAndrei Vagin <avagin@google.com>2020-03-05 13:07:04 -0800
committergVisor bot <gvisor-bot@google.com>2020-03-05 13:08:04 -0800
commit6ec669631fe41ad739e46fed4dfca68d53001f83 (patch)
tree0d1ae67d3df2d37bf8647efcae0189e862078316 /runsc
parentb1576e533223e98ebe4bd1b82b04e3dcda8c4bf1 (diff)
tests: Don't print log messages on stdout
A parser of test results doesn't expect to see any extra messages. PiperOrigin-RevId: 299174138
Diffstat (limited to 'runsc')
-rw-r--r--runsc/container/container_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/runsc/container/container_test.go b/runsc/container/container_test.go
index bdd65b498..c7eea85b3 100644
--- a/runsc/container/container_test.go
+++ b/runsc/container/container_test.go
@@ -2092,7 +2092,7 @@ func TestOverlayfsStaleRead(t *testing.T) {
defer out.Close()
const want = "foobar"
- cmd := fmt.Sprintf("cat %q && echo %q> %q && cp %q %q", in.Name(), want, in.Name(), in.Name(), out.Name())
+ cmd := fmt.Sprintf("cat %q >&2 && echo %q> %q && cp %q %q", in.Name(), want, in.Name(), in.Name(), out.Name())
spec := testutil.NewSpecWithArgs("/bin/bash", "-c", cmd)
if err := run(spec, conf); err != nil {
t.Fatalf("Error running container: %v", err)