tests/acceptance/virtio_check_params: Improve exception logging
Message-Id: <20200129212345.20547-18-philmd@redhat.com> Reviewed-by: Eduardo Habkost <ehabkost@redhat.com> Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
This commit is contained in:
parent
47d4c6e696
commit
0400937be1
@ -77,8 +77,12 @@ class VirtioMaxSegSettingsCheck(Test):
|
|||||||
vm.set_machine(mt["name"])
|
vm.set_machine(mt["name"])
|
||||||
for s in VM_DEV_PARAMS[dev_type_name]:
|
for s in VM_DEV_PARAMS[dev_type_name]:
|
||||||
vm.add_args(s)
|
vm.add_args(s)
|
||||||
vm.launch()
|
try:
|
||||||
query_ok, props, error = self.query_virtqueue(vm, dev_type_name)
|
vm.launch()
|
||||||
|
query_ok, props, error = self.query_virtqueue(vm, dev_type_name)
|
||||||
|
except:
|
||||||
|
query_ok = False
|
||||||
|
error = sys.exc_info()[0]
|
||||||
|
|
||||||
if not query_ok:
|
if not query_ok:
|
||||||
self.fail('machine type {0}: {1}'.format(mt['name'], error))
|
self.fail('machine type {0}: {1}'.format(mt['name'], error))
|
||||||
|
Loading…
Reference in New Issue
Block a user