]> xenbits.xensource.com Git - libvirt.git/commitdiff
qemuhotplugtest: Only read result_filename if used
authorMartin Kletzander <mkletzan@redhat.com>
Thu, 15 Sep 2016 08:58:17 +0000 (10:58 +0200)
committerMartin Kletzander <mkletzan@redhat.com>
Fri, 16 Sep 2016 13:38:14 +0000 (15:38 +0200)
Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
tests/qemuhotplugtest.c

index 0a5f06834c1431fe59ce79064218aef89e655127..6a9ed992f31d9453acef2d568cf99ffbea4573da 100644 (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;