Signed-off-by: Martin Kletzander <mkletzan(a)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