127bba
From 85bcdfb34ed4520a7e63be7cebe8019dbeeecb56 Mon Sep 17 00:00:00 2001
127bba
Message-Id: <85bcdfb34ed4520a7e63be7cebe8019dbeeecb56@dist-git>
127bba
From: Martin Kletzander <mkletzan@redhat.com>
127bba
Date: Fri, 4 Nov 2016 10:29:31 +0100
127bba
Subject: [PATCH] qemuhotplugtest: Only read result_filename if used
127bba
127bba
Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
127bba
(cherry picked from commit a41d87f42fce94e93d7439a88c2d67d61c84d105)
127bba
127bba
https://bugzilla.redhat.com/show_bug.cgi?id=1392031
127bba
127bba
Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
127bba
---
127bba
 tests/qemuhotplugtest.c | 2 +-
127bba
 1 file changed, 1 insertion(+), 1 deletion(-)
127bba
127bba
diff --git a/tests/qemuhotplugtest.c b/tests/qemuhotplugtest.c
127bba
index 5f6b838..07b8091 100644
127bba
--- a/tests/qemuhotplugtest.c
127bba
+++ b/tests/qemuhotplugtest.c
127bba
@@ -239,7 +239,7 @@ testQemuHotplug(const void *data)
127bba
         virTestLoadFile(device_filename, &device_xml) < 0)
127bba
         goto cleanup;
127bba
 
127bba
-    if (test->action != UPDATE &&
127bba
+    if (test->action == ATTACH &&
127bba
         virTestLoadFile(result_filename, &result_xml) < 0)
127bba
         goto cleanup;
127bba
 
127bba
-- 
127bba
2.10.2
127bba