[PATCH (pushed)] domaincapstest: Skip unknown variants instead of the default variant

Peter Krempa posted 1 patch 1 year, 1 month ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/f2c20b8260566bbd3078a12473a75896e21512e9.1680511894.git.pkrempa@redhat.com
tests/domaincapstest.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH (pushed)] domaincapstest: Skip unknown variants instead of the default variant
Posted by Peter Krempa 1 year, 1 month ago
Fix the logic selecting when to run the tests to skip unknown variants
rather than the default variant.

Fixes: 738c5bae888
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
---
Pushed as trivial. I've messed up when applying review feedback.

 tests/domaincapstest.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/domaincapstest.c b/tests/domaincapstest.c
index a02197c4ea..ca4761aad0 100644
--- a/tests/domaincapstest.c
+++ b/tests/domaincapstest.c
@@ -326,7 +326,7 @@ doTestQemu(const char *inputDir G_GNUC_UNUSED,

     if (STREQ(variant, "+hvf"))
         hvf = true;
-    else if (STREQ(variant, ""))
+    else if (STRNEQ(variant, ""))
         return 0;

     if (STREQ(arch, "x86_64")) {
-- 
2.39.2