From: Martin Kletzander Date: Thu, 15 Sep 2016 08:58:17 +0000 (+0200) Subject: qemuhotplugtest: Only read result_filename if used X-Git-Tag: v2.3.0-rc1~138 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a41d87f42fce94e93d7439a88c2d67d61c84d105;p=thirdparty%2Flibvirt.git qemuhotplugtest: Only read result_filename if used Signed-off-by: Martin Kletzander --- diff --git a/tests/qemuhotplugtest.c b/tests/qemuhotplugtest.c index 0a5f06834c..6a9ed992f3 100644 --- a/tests/qemuhotplugtest.c +++ b/tests/qemuhotplugtest.c @@ -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;