summaryrefslogtreecommitdiffhomepage
path: root/test/syscalls/syscall_test_runner.go
diff options
context:
space:
mode:
authorFabricio Voznika <fvoznika@google.com>2019-02-27 10:05:46 -0800
committerShentubot <shentubot@google.com>2019-02-27 10:06:35 -0800
commit6df212b831dcc3350b7677423ec7835ed40b3f22 (patch)
tree278dad70f5a16efc0bf35d9eab060ef9cc10f0c7 /test/syscalls/syscall_test_runner.go
parentd516ee3312411c60630305cfaac6c5a0e21537e8 (diff)
Don't log twice to debug log when --log isn't set
PiperOrigin-RevId: 235940853 Change-Id: I9c5b4cf18b199fb74044a5edb131bfff59dec945
Diffstat (limited to 'test/syscalls/syscall_test_runner.go')
-rw-r--r--test/syscalls/syscall_test_runner.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/syscalls/syscall_test_runner.go b/test/syscalls/syscall_test_runner.go
index 9fe801b26..c4af28103 100644
--- a/test/syscalls/syscall_test_runner.go
+++ b/test/syscalls/syscall_test_runner.go
@@ -202,6 +202,11 @@ func runTestCaseRunsc(testBin string, tc gtest.TestCase, t *testing.T) {
debugLogDir += "/"
log.Infof("runsc logs: %s", debugLogDir)
args = append(args, "-debug-log", debugLogDir)
+
+ // Default -log sends messages to stderr which makes reading the test log
+ // difficult. Instead, drop them when debug log is enabled given it's a
+ // better place for these messages.
+ args = append(args, "-log=/dev/null")
}
// Current process doesn't have CAP_SYS_ADMIN, create user namespace and run