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")