Skip to content

Commit

Permalink
Recipes/ENRT/UseVfsMixin: add generate_test_wide_description
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Tluka <[email protected]>
  • Loading branch information
jtluka committed Aug 14, 2024
1 parent 6c349e8 commit 4d47614
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions lnst/Recipes/ENRT/UseVfsMixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,14 @@ def test_wide_deconfiguration(self, config):
sriov_devices.phys_dev.delete_vfs()

super().test_wide_deconfiguration(config)

def generate_test_wide_description(self, config):
description = super().generate_test_wide_description(config)
description += [
f"Using vf device {vf_dev.name} of pf {sriov_devices.phys_dev.name} on host {host}"
for host, sriov_devices_list in config.vf_config.items()
for sriov_devices in sriov_devices_list
for vf_dev in sriov_devices.vfs
]

return description

0 comments on commit 4d47614

Please sign in to comment.