tests: Set nvramDir in qemuxml2xmltest

We already do this in qemuxml2argvtest.

Right now setting this doesn't change anything, but it will
become relevant later.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
Andrea Bolognani 2023-01-26 18:33:22 +01:00
parent f3d0857f2e
commit 2adc24fc6a

View File

@ -163,6 +163,9 @@ mymain(void)
cfg = virQEMUDriverGetConfig(&driver);
driver.privileged = true;
VIR_FREE(cfg->nvramDir);
cfg->nvramDir = g_strdup("/var/lib/libvirt/qemu/nvram");
if (!(conn = virGetConnect()))
goto cleanup;