From 8bec82b5cedcab06e75915dcd7fcbb5765bdd79d Mon Sep 17 00:00:00 2001 From: Hu Shuai Date: Sun, 18 Feb 2024 16:19:45 +0800 Subject: [PATCH] virtual_networks: Update error message to match more distros The error messages for the negative tests are different on xxxx-8 and xxxx-9: On xxxx-8: XML error: Invalid value for attribute 'order' in element 'boot': '-1'. Expected integer value On xxxx-9: XML error: Invalid value for attribute 'order' in element 'boot': '-1'. Expected non-negative integer value Signed-off-by: Hu Shuai --- .../attach_detach_device/attach_iface_with_boot_order.cfg | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libvirt/tests/cfg/virtual_network/attach_detach_device/attach_iface_with_boot_order.cfg b/libvirt/tests/cfg/virtual_network/attach_detach_device/attach_iface_with_boot_order.cfg index 5d052bf46e..7b4be22f57 100644 --- a/libvirt/tests/cfg/virtual_network/attach_detach_device/attach_iface_with_boot_order.cfg +++ b/libvirt/tests/cfg/virtual_network/attach_detach_device/attach_iface_with_boot_order.cfg @@ -14,8 +14,8 @@ err_msg = unsupported configuration: boot order ${boot_order} is already used by another device - neg_value: boot_order = -1 - err_msg = Expected non-negative integer value + err_msg = Expected non-negative integer value|Expected integer value - str_value: boot_order = ss - err_msg = Expected non-negative integer value + err_msg = Expected non-negative integer value|Expected integer value iface_attrs = {'source': {'network': 'default'}, 'model': 'virtio', 'type_name': 'network', 'boot': '${boot_order}'}