qemuhotplugtest: Only read result_filename if used

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
This commit is contained in:
Martin Kletzander 2016-09-15 10:58:17 +02:00
parent 706b5b6277
commit a41d87f42f

View File

@ -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;