nixos/test: Fix child environment of python driver

This commit is contained in:
Jacek Galowicz 2019-11-19 12:59:14 +01:00 committed by Florian Klink
parent 783184f772
commit 67e2042861

View File

@ -606,12 +606,15 @@ class Machine:
+ os.environ.get("QEMU_OPTS", "")
)
environment = {
"QEMU_OPTS": qemu_options,
environment = dict(os.environ)
environment.update(
{
"TMPDIR": self.state_dir,
"SHARED_DIR": self.shared_dir,
"USE_TMPDIR": "1",
"QEMU_OPTS": qemu_options,
}
environment.update(dict(os.environ))
)
self.process = subprocess.Popen(
self.script,