Skip to content

Commit

Permalink
integ tests: use different pytest basetemp for each test process
Browse files Browse the repository at this point in the history
pytest-dev/pytest#5456
Signed-off-by: Francesco De Martino <fdm@amazon.com>
  • Loading branch information
demartinofra authored and Matteo Fiordarancio committed Jul 3, 2019
1 parent ae02eb4 commit 0b79853
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/integration-tests/test_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import os
import sys
import time
from tempfile import TemporaryDirectory

import argparse
import pytest
Expand Down Expand Up @@ -283,8 +284,10 @@ def _run_test_in_region(region, args):
sys.stdout = open("{0}/pytest.out".format(out_dir), "w")

pytest_args_regionalized = _get_pytest_regionalized_args(region, args)
logger.info("Starting tests in region {0} with params {1}".format(region, pytest_args_regionalized))
pytest.main(pytest_args_regionalized)
with TemporaryDirectory() as temp_dir:
pytest_args_regionalized.extend(["--basetemp", temp_dir])
logger.info("Starting tests in region {0} with params {1}".format(region, pytest_args_regionalized))
pytest.main(pytest_args_regionalized)


def _make_logging_dirs(base_dir):
Expand Down

0 comments on commit 0b79853

Please sign in to comment.