File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 15
15
import os
16
16
import sys
17
17
import time
18
+ from tempfile import TemporaryDirectory
18
19
19
20
import argparse
20
21
import pytest
@@ -283,8 +284,10 @@ def _run_test_in_region(region, args):
283
284
sys .stdout = open ("{0}/pytest.out" .format (out_dir ), "w" )
284
285
285
286
pytest_args_regionalized = _get_pytest_regionalized_args (region , args )
286
- logger .info ("Starting tests in region {0} with params {1}" .format (region , pytest_args_regionalized ))
287
- pytest .main (pytest_args_regionalized )
287
+ with TemporaryDirectory () as temp_dir :
288
+ pytest_args_regionalized .extend (["--basetemp" , temp_dir ])
289
+ logger .info ("Starting tests in region {0} with params {1}" .format (region , pytest_args_regionalized ))
290
+ pytest .main (pytest_args_regionalized )
288
291
289
292
290
293
def _make_logging_dirs (base_dir ):
You can’t perform that action at this time.
0 commit comments