Fixed tests that change directory when we run the test on a temporal.

This commit is contained in:
SET 2020-08-16 00:23:43 -03:00
parent 0097308e3c
commit b0733ae07f
1 changed files with 3 additions and 2 deletions

View File

@ -156,8 +156,9 @@ class TestContext(object):
def do_run(self, cmd, ret_val=None, use_a_tty=False, chdir_out=False):
cmd_base = [COVERAGE_SCRIPT, 'run', '-a']
if chdir_out:
cmd_base.append('--rcfile=../../.coveragerc')
os.environ['COVERAGE_FILE'] = os.path.join(os.getcwd(), '.coverage')
cwd = os.getcwd()
cmd_base.append('--rcfile='+os.path.join(cwd, '.coveragerc'))
os.environ['COVERAGE_FILE'] = os.path.join(cwd, '.coverage')
cmd = cmd_base+cmd
logging.debug(cmd)
out_filename = self.get_out_path('output.txt')