Skip to content

Commit

Permalink
Merge pull request DIRACGrid#7540 from chaen/v9.0_fix_testScreen
Browse files Browse the repository at this point in the history
test: redirect test_integrations.py popen stdout/stderr to a file
  • Loading branch information
chrisburr authored Mar 26, 2024
2 parents 11f10ed + 3fd8cd6 commit 18c15dc
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 18c15dc

Please sign in to comment.