mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-21 20:15:17 +00:00
qemuhotplugtest: Only read result_filename if used
Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
This commit is contained in:
parent
706b5b6277
commit
a41d87f42f
@ -240,7 +240,7 @@ testQemuHotplug(const void *data)
|
||||
virTestLoadFile(device_filename, &device_xml) < 0)
|
||||
goto cleanup;
|
||||
|
||||
if (test->action != UPDATE &&
|
||||
if (test->action == ATTACH &&
|
||||
virTestLoadFile(result_filename, &result_xml) < 0)
|
||||
goto cleanup;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user