mirror of https://gitee.com/openkylin/libvirt.git
Fix PKI directory used for QEMU test suite
The data files for testing QEMU command line generation are hardcoded to use /etc/pki, so we should explicitly set that in the test case, avoiding the dynamic SYSCONFDIR value. Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
This commit is contained in:
parent
0d36f228a4
commit
9cceb0fc35
|
@ -285,6 +285,13 @@ mymain(void)
|
|||
VIR_FREE(driver.config->spiceListen);
|
||||
VIR_FREE(driver.config->vncListen);
|
||||
|
||||
VIR_FREE(driver.config->vncTLSx509certdir);
|
||||
if ((driver.config->vncTLSx509certdir = strdup("/etc/pki/libvirt-vnc")) == NULL)
|
||||
return EXIT_FAILURE;
|
||||
VIR_FREE(driver.config->spiceTLSx509certdir);
|
||||
if ((driver.config->spiceTLSx509certdir = strdup("/etc/pki/libvirt-spice")) == NULL)
|
||||
return EXIT_FAILURE;
|
||||
|
||||
if ((driver.caps = testQemuCapsInit()) == NULL)
|
||||
return EXIT_FAILURE;
|
||||
VIR_FREE(driver.config->stateDir);
|
||||
|
|
Loading…
Reference in New Issue