mirror of https://gitee.com/openkylin/libvirt.git
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…
Reference in New Issue