Skip to content

Commit

Permalink
Merge pull request #5949 from smitterl/iface_stat_dac
Browse files Browse the repository at this point in the history
iface_stat: fix test on s390x
  • Loading branch information
chloerh authored Oct 24, 2024
2 parents bb415e8 + ec05d07 commit e5cd0ed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libvirt/tests/cfg/virtual_network/iface_stat.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,5 @@
- macvtap:
func_supported_since_libvirt_ver = (9, 2, 0)
iface_attrs = {'acpi': {'index': '5'}, 'target': {'dev': tap_name, 'managed': 'no'}, 'model': 'virtio', 'type_name': 'ethernet'}
s390-virtio:
iface_attrs = {'target': {'dev': tap_name, 'managed': 'no'}, 'model': 'virtio', 'type_name': 'ethernet'}
1 change: 1 addition & 0 deletions libvirt/tests/src/virtual_network/iface_stat.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ def _collect_and_compare_stat(vm_name, session, **virsh_args):
unpr_vmxml.del_device('interface', by_tag=True)
libvirt_vmxml.modify_vm_device(unpr_vmxml, 'interface',
iface_attrs)
unpr_vmxml.del_seclabel(by_attr=[('model', 'dac')])
network_base.define_vm_for_unprivileged_user(unpr_user,
unpr_vmxml)
unpr_vm_name = unpr_vmxml.vm_name
Expand Down

0 comments on commit e5cd0ed

Please sign in to comment.