nixos/test: Fix child environment of python driver
This commit is contained in:
parent
783184f772
commit
67e2042861
@ -606,12 +606,15 @@ class Machine:
|
|||||||
+ os.environ.get("QEMU_OPTS", "")
|
+ os.environ.get("QEMU_OPTS", "")
|
||||||
)
|
)
|
||||||
|
|
||||||
environment = {
|
environment = dict(os.environ)
|
||||||
"QEMU_OPTS": qemu_options,
|
environment.update(
|
||||||
"SHARED_DIR": self.shared_dir,
|
{
|
||||||
"USE_TMPDIR": "1",
|
"TMPDIR": self.state_dir,
|
||||||
}
|
"SHARED_DIR": self.shared_dir,
|
||||||
environment.update(dict(os.environ))
|
"USE_TMPDIR": "1",
|
||||||
|
"QEMU_OPTS": qemu_options,
|
||||||
|
}
|
||||||
|
)
|
||||||
|
|
||||||
self.process = subprocess.Popen(
|
self.process = subprocess.Popen(
|
||||||
self.script,
|
self.script,
|
||||||
|
Loading…
Reference in New Issue
Block a user