Skip to content

Commit

Permalink
test: redirect test_integrations.py popen stdout/stderr to a file
Browse files Browse the repository at this point in the history
  • Loading branch information
chaen committed Mar 25, 2024
1 parent 11f10ed commit 3fd8cd6
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions integration_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,12 +334,15 @@ def prepare_environment(
# We use Popen because we don't want to wait for this command to finish.
# It is going to start all the diracx containers, including one which waits
# for the DIRAC installation to be over.
subStdout = open(docker_compose_fn_final / "stdout", "w")
subStderr = open(docker_compose_fn_final / "stderr", "w")

subprocess.Popen(
["docker", "compose", "-f", docker_compose_fn_final / "docker-compose.yml", "up", "-d", "diracx"],
env=docker_compose_env,
stdin=None,
stdout=None,
stderr=None,
stdout=subStdout,
stderr=subStderr,
close_fds=True,
)

Expand Down

0 comments on commit 3fd8cd6

Please sign in to comment.