aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-08-08 00:57:27 +0900
committerOphestra <cat@gensokyo.uk>2025-08-08 00:57:27 +0900
commitfee10fed4dd394114ddb429a35c8b85613520da3 (patch)
tree6f47eb5c847c85b8d4adad225b2b518c3f1f3e0d
parenta4f7e92e1c96b6afda6389de44d166804512d24d (diff)
container: test bypass output buffer on verbose
This restores verbose behaviour. Signed-off-by: Ophestra <cat@gensokyo.uk>
-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