tests: Drop dirname argument from testQemuGetLatestCapsForArch()

As evidenced by all existing callers, the only directory it makes
sense to use is TEST_QEMU_CAPS_PATH, so let's just bake that into
the function.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
Andrea Bolognani
2019-04-16 12:26:22 +02:00
parent f0e48979c9
commit 3fe020a038
4 changed files with 9 additions and 14 deletions

View File

@@ -533,8 +533,7 @@ testQEMUSchemaGetLatest(void)
virJSONValuePtr reply = NULL;
virJSONValuePtr schema = NULL;
if (!(capsLatestFile = testQemuGetLatestCapsForArch(abs_srcdir "/qemucapabilitiesdata",
"x86_64", "replies"))) {
if (!(capsLatestFile = testQemuGetLatestCapsForArch("x86_64", "replies"))) {
VIR_TEST_VERBOSE("failed to find latest caps replies\n");
return NULL;
}