From 039ae746627c792390f4f40476863eaca4c3eccf Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Wed, 20 Jan 2016 18:18:09 +0100 Subject: [PATCH] tests: pass HOME to testprocess with custom env. --- tests/integration/testprocess.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/integration/testprocess.py b/tests/integration/testprocess.py index 1a7ce3e28..e54f7ead4 100644 --- a/tests/integration/testprocess.py +++ b/tests/integration/testprocess.py @@ -244,8 +244,11 @@ class Process(QObject): procenv = QProcessEnvironment() for k, v in env.items(): procenv.insert(k, v) - if 'DISPLAY' in os.environ: - procenv.insert('DISPLAY', os.environ['DISPLAY']) + + passthrough_vars = ['DISPLAY', 'HOME'] # so --no-xvfb works + for var in passthrough_vars: + if var in os.environ: + procenv.insert(var, os.environ[var]) self.proc.readyRead.connect(self.read_log) self.proc.setProcessEnvironment(procenv)