From 84378d71a2436dfcca70aa95086dd27164f5de65 Mon Sep 17 00:00:00 2001 From: Federico Di Pierro Date: Fri, 10 May 2024 09:25:36 +0200 Subject: [PATCH] chore(test/e2e): redirect stderr to stdout. Signed-off-by: Federico Di Pierro --- test/e2e/tests/conftest.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/e2e/tests/conftest.py b/test/e2e/tests/conftest.py index d6d4cffd38..aefd5a57a0 100644 --- a/test/e2e/tests/conftest.py +++ b/test/e2e/tests/conftest.py @@ -2,7 +2,7 @@ import docker import os from time import sleep -from subprocess import Popen, PIPE +from subprocess import Popen, PIPE, STDOUT from sinspqa import LOGS_PATH, is_containerized from sinspqa.sinsp import SinspStreamerBuilder @@ -212,7 +212,7 @@ def sinsp(request, docker_client: docker.client.DockerClient): additional_wait = process.get('init_wait', 0) for k, v in process['env'].items(): env[k] = v - process = Popen(args, env=env, stdout=PIPE, universal_newlines=True) + process = Popen(args, env=env, stdout=PIPE, stderr=STDOUT, universal_newlines=True) if additional_wait: sleep(additional_wait)