]> xenbits.xensource.com Git - libvirt.git/commitdiff
tests: qemuxml2argv: Tweak TEST_CAPS_PATH
authorCole Robinson <crobinso@redhat.com>
Thu, 21 Mar 2019 19:03:32 +0000 (15:03 -0400)
committerCole Robinson <crobinso@redhat.com>
Fri, 22 Mar 2019 15:51:47 +0000 (11:51 -0400)
Make it an actual path and not a string prefix

Reviewed-by: Andrea Bolognani <abologna@redhat.com>
Signed-off-by: Cole Robinson <crobinso@redhat.com>
tests/qemuxml2argvtest.c

index 02bf288a4b381071c747592f4d055e0a6b60254d..8e89be65de87bd5cf157a6d145157317d8735ff9 100644 (file)
@@ -819,7 +819,7 @@ mymain(void)
  * the test cases should be forked using DO_TEST_CAPS_VER with the appropriate
  * version.
  */
-# define TEST_CAPS_PATH abs_srcdir "/qemucapabilitiesdata/caps_"
+# define TEST_CAPS_PATH abs_srcdir "/qemucapabilitiesdata"
 
 # define DO_TEST_CAPS_INTERNAL(_name, arch, ver, ...) \
     do { \
@@ -827,7 +827,7 @@ mymain(void)
             .name = _name, \
             .suffix = "." arch "-" ver, \
         }; \
-        static const char *capsfile = TEST_CAPS_PATH ver "." arch ".xml"; \
+        static const char *capsfile = TEST_CAPS_PATH "/caps_" ver "." arch ".xml"; \
         static bool stripmachinealiases; \
         if (STREQ(ver, "latest")) { \
             capsfile = virHashLookup(capslatest, arch); \