tests, sriov: Extract the resource-name reading to a function
tests, sriov: Extract the resource-name reading to a function

The details on how the resource-name is fetched is abstracted away
behind a function.

Signed-off-by: Edward Haas <416ab6a6c3e37a8cab0d365516e79cce8f9be5ad@redhat.com>

kubevirt/kubevirt,kubevirt/kubevirt,kubevirt/kubevirt,kubevirt/kubevirt