tests: Use TEST_QEMU_CAPS_PATH wherever possible

After the recent changes, there are only a few places left
where we use the explicit path instead of taking advantage of
the publicly available define; let's get rid of those too.

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:31:00 +02:00
parent 45dff4bbfa
commit c64152b67c
4 changed files with 5 additions and 5 deletions

View File

@ -88,8 +88,8 @@ fillQemuCaps(virDomainCapsPtr domCaps,
fakeHostCPU(caps, domCaps->arch) < 0)
goto cleanup;
if (virAsprintf(&path, "%s/qemucapabilitiesdata/%s.%s.xml",
abs_srcdir, name, arch) < 0 ||
if (virAsprintf(&path, "%s/%s.%s.xml",
TEST_QEMU_CAPS_PATH, name, arch) < 0 ||
!(qemuCaps = qemuTestParseCapabilities(caps, path)))
goto cleanup;

View File

@ -156,7 +156,7 @@ mymain(void)
do { \
virQEMUCapsPtr qemuCaps; \
qemuCaps = qemuTestParseCapabilitiesArch(VIR_ARCH_X86_64, \
abs_srcdir "/qemucapabilitiesdata/caps_2.12.0." arch ".xml"); \
TEST_QEMU_CAPS_PATH "/caps_2.12.0." arch ".xml"); \
if (virFileCacheInsertData(driver.qemuCapsCache, \
"/usr/bin/qemu-system-" arch, \
qemuCaps) < 0) \

View File

@ -48,7 +48,7 @@ testQemuDataInit(testQemuDataPtr data)
if (qemuTestDriverInit(&data->driver) < 0)
return -1;
data->dataDir = abs_srcdir "/qemucapabilitiesdata";
data->dataDir = TEST_QEMU_CAPS_PATH;
data->ret = 0;

View File

@ -39,7 +39,7 @@ struct _testQemuData {
static int
testQemuDataInit(testQemuDataPtr data)
{
data->inputDir = abs_srcdir "/qemucapabilitiesdata";
data->inputDir = TEST_QEMU_CAPS_PATH;
data->outputDir = abs_srcdir "/qemucaps2xmloutdata";
data->ret = 0;