diff options
author | Philippe Mathieu-Daudé <philmd@redhat.com> | 2020-01-29 22:23:33 +0100 |
---|---|---|
committer | Philippe Mathieu-Daudé <philmd@redhat.com> | 2020-02-07 15:12:48 +0100 |
commit | 0400937be151f6fe7f4fc0e3f0bbad43f623ef89 (patch) | |
tree | df780eb5efab59d523eafe8b766edd7abbbe5a4f /tests/acceptance | |
parent | 47d4c6e696699337a7ec062f4f54f6c187a94034 (diff) |
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>
Diffstat (limited to 'tests/acceptance')
-rwxr-xr-x | tests/acceptance/virtio_check_params.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/acceptance/virtio_check_params.py b/tests/acceptance/virtio_check_params.py index 5458573138..270f69d092 100755 --- a/tests/acceptance/virtio_check_params.py +++ b/tests/acceptance/virtio_check_params.py @@ -77,8 +77,12 @@ class VirtioMaxSegSettingsCheck(Test): vm.set_machine(mt["name"]) for s in VM_DEV_PARAMS[dev_type_name]: vm.add_args(s) - vm.launch() - query_ok, props, error = self.query_virtqueue(vm, dev_type_name) + try: + 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: self.fail('machine type {0}: {1}'.format(mt['name'], error)) |