[libvirt] [PATCH 01/20] qemuhotplugtest: Only read result_filename if used
Martin Kletzander
mkletzan at redhat.com
Thu Sep 15 16:14:26 UTC 2016
Signed-off-by: Martin Kletzander <mkletzan at redhat.com>
---
tests/qemuhotplugtest.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/qemuhotplugtest.c b/tests/qemuhotplugtest.c
index 0a5f06834c14..6a9ed992f31d 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;
--
2.10.0
More information about the libvir-list
mailing list