3
0
Fork 0
forked from mirrors/nixpkgs

Merge #97746: test-driver.py: defaulting keepVmState

This commit is contained in:
Vladimír Čunát 2020-09-11 13:07:05 +02:00
commit 2bb1868f76
No known key found for this signature in database
GPG key ID: E747DF1F9575A3AA

View file

@ -228,7 +228,7 @@ class Machine:
return path
self.state_dir = os.path.join(tmp_dir, f"vm-state-{self.name}")
if not args["keepVmState"]:
if not args.get("keepVmState", False):
self.cleanup_statedir()
os.makedirs(self.state_dir, mode=0o700, exist_ok=True)
self.shared_dir = create_dir("shared-xchg")