tests: Don't print log messages on stdout

A parser of test results doesn't expect to see any extra messages.

PiperOrigin-RevId: 299174138
This commit is contained in:
Andrei Vagin 2020-03-05 13:07:04 -08:00 committed by gVisor bot
parent b1576e5332
commit 6ec669631f
1 changed files with 1 additions and 1 deletions

View File

@ -2092,7 +2092,7 @@ func TestOverlayfsStaleRead(t *testing.T) {
defer out.Close() defer out.Close()
const want = "foobar" 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) spec := testutil.NewSpecWithArgs("/bin/bash", "-c", cmd)
if err := run(spec, conf); err != nil { if err := run(spec, conf); err != nil {
t.Fatalf("Error running container: %v", err) t.Fatalf("Error running container: %v", err)