]> xenbits.xensource.com Git - libvirt.git/commitdiff
domaincapstest: Skip unknown variants instead of the default variant
authorPeter Krempa <pkrempa@redhat.com>
Mon, 3 Apr 2023 08:47:36 +0000 (10:47 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 3 Apr 2023 08:51:17 +0000 (10:51 +0200)
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>
tests/domaincapstest.c

index a02197c4ea0e1ffcb396e89918d4a5f6f85b9ffd..ca4761aad097c961f7e97219933df6680482ddae 100644 (file)
@@ -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")) {