Index: client/tests/kvm/tests/jumbo.py |
diff --git a/client/tests/kvm/tests/jumbo.py b/client/tests/kvm/tests/jumbo.py |
index 1fbce8b67c7f1e5f2cdb7112fe49b8f380d3a46c..2c91c839071b9d65d6338c7141f66d8d5d48c06b 100644 |
--- a/client/tests/kvm/tests/jumbo.py |
+++ b/client/tests/kvm/tests/jumbo.py |
@@ -40,7 +40,11 @@ def run_jumbo(test, params, env): |
logging.info("Changing the MTU of guest ...") |
guest_mtu_cmd = "ifconfig %s mtu %s" % (ethname , mtu) |
- session.cmd(guest_mtu_cmd) |
+ s, o = session.get_command_status_output(guest_mtu_cmd) |
+ if s != 0: |
+ logging.error(o) |
+ raise error.TestError("Fail to set the MTU of guest NIC: %s" % |
+ ethname) |
logging.info("Chaning the MTU of host tap ...") |
host_mtu_cmd = "ifconfig %s mtu %s" % (ifname, mtu) |