diff --git a/qemu/tests/pci_devices.py b/qemu/tests/pci_devices.py index 46e75fc025e5612d18983e9733206b7f79b9d174..1eed0e4d9b5c0d5e31dfe3943702a6df7a9a2bcd 100755 --- a/qemu/tests/pci_devices.py +++ b/qemu/tests/pci_devices.py @@ -296,6 +296,8 @@ def run(test, params, env): env_process.preprocess_vm(test, params, env, params["main_vm"]) vm = env.get_vm(params["main_vm"]) qdev = vm.make_create_command() # parse params into qdev + if isinstance(qdev, tuple): + qdev = qdev[0] error.context("Getting main PCI bus info")