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

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

Issue 6883246: Merge autotest upstream from @5318 ~ @5336 (Closed) Base URL: ssh://gitrw.chromium.org:9222/autotest.git@master
Patch Set: patch Created 9 years, 8 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/tests/set_link.py ('k') | client/tests/kvm/tests/steps.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/tests/kvm/tests/stepmaker.py
diff --git a/client/tests/kvm/tests/stepmaker.py b/client/tests/kvm/tests/stepmaker.py
index 54f0e2b01089e898943262c8cfbaee2e9a39927a..9376bbae6945577b71b4c3b5fb3468a7213e030e 100755
--- a/client/tests/kvm/tests/stepmaker.py
+++ b/client/tests/kvm/tests/stepmaker.py
@@ -10,11 +10,12 @@ Step file creator/editor.
import pygtk, gtk, gobject, time, os, commands, logging
import common
from autotest_lib.client.common_lib import error
-import kvm_utils, ppm_utils, stepeditor, kvm_monitor
+from autotest_lib.client.virt import virt_utils, ppm_utils, virt_step_editor
+from autotest_lib.client.virt import kvm_monitor
pygtk.require('2.0')
-class StepMaker(stepeditor.StepMakerWindow):
+class StepMaker(virt_step_editor.StepMakerWindow):
"""
Application used to create a step file. It will grab your input to the
virtual machine and record it on a 'step file', that can be played
@@ -22,7 +23,7 @@ class StepMaker(stepeditor.StepMakerWindow):
"""
# Constructor
def __init__(self, vm, steps_filename, tempdir, params):
- stepeditor.StepMakerWindow.__init__(self)
+ virt_step_editor.StepMakerWindow.__init__(self)
self.vm = vm
self.steps_filename = steps_filename
@@ -87,7 +88,7 @@ class StepMaker(stepeditor.StepMakerWindow):
self.vm.monitor.cmd("cont")
self.steps_file.close()
self.vars_file.close()
- stepeditor.StepMakerWindow.destroy(self, widget)
+ virt_step_editor.StepMakerWindow.destroy(self, widget)
# Utilities
@@ -347,7 +348,7 @@ def run_stepmaker(test, params, env):
steps_filename = params.get("steps")
if not steps_filename:
raise error.TestError("Steps filename not specified")
- steps_filename = kvm_utils.get_path(test.bindir, steps_filename)
+ steps_filename = virt_utils.get_path(test.bindir, steps_filename)
if os.path.exists(steps_filename):
raise error.TestError("Steps file %s already exists" % steps_filename)
« no previous file with comments | « client/tests/kvm/tests/set_link.py ('k') | client/tests/kvm/tests/steps.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698