Index: client/tests/kvm/tests/pxe.py |
diff --git a/client/tests/kvm/tests/pxe.py b/client/tests/kvm/tests/pxe.py |
index ec9a549640e1d8aaaf4a29eb15d1a6b4c3b181cc..7c294c1c46b8f9d779b199479453b99e664b8fe1 100644 |
--- a/client/tests/kvm/tests/pxe.py |
+++ b/client/tests/kvm/tests/pxe.py |
@@ -1,6 +1,6 @@ |
import logging |
from autotest_lib.client.common_lib import error |
-import kvm_subprocess, kvm_test_utils |
+import kvm_subprocess |
def run_pxe(test, params, env): |
@@ -15,14 +15,13 @@ def run_pxe(test, params, env): |
@param params: Dictionary with the test parameters. |
@param env: Dictionary with test environment. |
""" |
- vm = kvm_test_utils.get_living_vm(env, params.get("main_vm")) |
+ vm = env.get_vm(params["main_vm"]) |
+ vm.verify_alive() |
timeout = int(params.get("pxe_timeout", 60)) |
logging.info("Try to boot from PXE") |
- status, output = kvm_subprocess.run_fg("tcpdump -nli %s" % vm.get_ifname(), |
- logging.debug, |
- "(pxe capture) ", |
- timeout) |
+ output = kvm_subprocess.run_fg("tcpdump -nli %s" % vm.get_ifname(), |
+ logging.debug, "(pxe capture) ", timeout)[1] |
logging.info("Analyzing the tcpdump result...") |
if not "tftp" in output: |