aboutsummaryrefslogtreecommitdiffhomepage
path: root/container/container_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'container/container_test.go')
-rw-r--r--container/container_test.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/container/container_test.go b/container/container_test.go
index da920765..6cbd7211 100644
--- a/container/container_test.go
+++ b/container/container_test.go
@@ -149,7 +149,11 @@ func TestContainer(t *testing.T) {
c.Gid = tc.gid
c.Hostname = hostnameFromTestCase(tc.name)
output := new(bytes.Buffer)
- c.Stdout, c.Stderr = output, output
+ if !testing.Verbose() {
+ c.Stdout, c.Stderr = output, output
+ } else {
+ c.Stdout, c.Stderr = os.Stdout, os.Stderr
+ }
c.WaitDelay = helperDefaultTimeout
*c.Ops = append(*c.Ops, *tc.ops...)
c.SeccompRules = tc.rules