When using netdev option, the monitor output of execute 'info network' changed.
Original pattern would match redundant characters.

(qemu) info network
Devices not on any VLAN:
  netdev0: net=10.0.2.0, restricted=n peer=e1000.0
  e1000.0: model=e1000,macaddr=02:26:c9:e6:e7:4d peer=netdev0

Signed-off-by: Amos Kong <[email protected]>
---
 0 files changed, 0 insertions(+), 0 deletions(-)

diff --git a/client/tests/kvm/tests/physical_resources_check.py 
b/client/tests/kvm/tests/physical_resources_check.py
index b5e156a..0f7cab3 100644
--- a/client/tests/kvm/tests/physical_resources_check.py
+++ b/client/tests/kvm/tests/physical_resources_check.py
@@ -120,7 +120,7 @@ def run_physical_resources_check(test, params, env):
         n_fail += 1
         logging.error(e)
         logging.error("info/query monitor command failed (network)")
-    found_mac_addresses = re.findall("macaddr=(.*)", o)
+    found_mac_addresses = re.findall("macaddr=(\S+)", o)
     logging.debug("Found MAC adresses: %s" % found_mac_addresses)
 
     for nic_name in kvm_utils.get_sub_dict_names(params, "nics"):

_______________________________________________
Autotest mailing list
[email protected]
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest

Reply via email to