From ac50252050949d8f73b96bc1c6be9b43b2c18d99 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Sep 21 2018 10:21:06 +0000 Subject: Use the existing environment variables as a base for the workers Signed-off-by: Pierre-Yves Chibon --- diff --git a/runtests.py b/runtests.py index b54d261..f6d993f 100755 --- a/runtests.py +++ b/runtests.py @@ -249,13 +249,15 @@ class WorkerThread(threading.Thread): cmd = [runner, "-v", "tests.%s" % self.suite] if self.with_cover: cmd.append("--with-cover") - env = { + + env = os.environ.copy() + env.update({ "PAGURE_CONFIG": "../tests/test_config", "COVERAGE_FILE": os.path.join( self.results, "%s.coverage" % self.name ), "LANG": "en_US.UTF-8", - } + }) proc = subprocess.Popen( cmd, cwd=".", stdout=resfile, stderr=subprocess.STDOUT, env=env )