Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(382)

Unified Diff: client/tests/kvm/kvm_scheduler.py

Issue 6124004: Revert "Merge remote branch 'cros/upstream' into autotest-rebase" (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/autotest.git@master
Patch Set: Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « client/tests/kvm/kvm_preprocessing.py ('k') | client/tests/kvm/kvm_subprocess.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/tests/kvm/kvm_scheduler.py
diff --git a/client/tests/kvm/kvm_scheduler.py b/client/tests/kvm/kvm_scheduler.py
index 95282e447785ecf3361d261ed571ae61b78a282b..f1adb39ab9f781be36bccfaf66d9e19787ea0625 100644
--- a/client/tests/kvm/kvm_scheduler.py
+++ b/client/tests/kvm/kvm_scheduler.py
@@ -74,13 +74,13 @@ class scheduler:
# The scheduler wants this worker to free its used resources
elif cmd[0] == "cleanup":
env_filename = os.path.join(self.bindir, self_dict["env"])
- env = kvm_utils.Env(env_filename)
+ env = kvm_utils.load_env(env_filename, {})
for obj in env.values():
if isinstance(obj, kvm_vm.VM):
obj.destroy()
- elif isinstance(obj, kvm_subprocess.Spawn):
+ elif isinstance(obj, kvm_subprocess.kvm_spawn):
obj.close()
- env.save()
+ kvm_utils.dump_env(env, env_filename)
w.write("cleanup_done\n")
w.write("ready\n")
« no previous file with comments | « client/tests/kvm/kvm_preprocessing.py ('k') | client/tests/kvm/kvm_subprocess.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698