mirror of https://gitee.com/openkylin/libvirt.git
tests: use a fixed chardev TLS path
The test qemuxml2argv-serial-tcp-tlsx509-chardev.args will fail if libvirt is built with a --sysconfdir arg that is not /etc. Fix this by setting a hardcoded path in the test code. Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
This commit is contained in:
parent
77cb01bc0f
commit
e043ecc82d
|
@ -25,8 +25,8 @@ server,nowait \
|
|||
-chardev udp,id=charserial0,host=127.0.0.1,port=2222,localaddr=127.0.0.1,\
|
||||
localport=1111 \
|
||||
-device isa-serial,chardev=charserial0,id=serial0 \
|
||||
-object tls-creds-x509,id=objserial1_tls0,dir=/etc/pki/qemu,endpoint=client,\
|
||||
verify-peer=no \
|
||||
-object tls-creds-x509,id=objserial1_tls0,dir=/etc/pki/libvirt-chardev,\
|
||||
endpoint=client,verify-peer=no \
|
||||
-chardev socket,id=charserial1,host=127.0.0.1,port=5555,\
|
||||
tls-creds=objserial1_tls0 \
|
||||
-device isa-serial,chardev=charserial1,id=serial1 \
|
||||
|
|
|
@ -515,12 +515,18 @@ mymain(void)
|
|||
|
||||
driver.privileged = true;
|
||||
|
||||
VIR_FREE(driver.config->defaultTLSx509certdir);
|
||||
if (VIR_STRDUP_QUIET(driver.config->defaultTLSx509certdir, "/etc/pki/qemu") < 0)
|
||||
return EXIT_FAILURE;
|
||||
VIR_FREE(driver.config->vncTLSx509certdir);
|
||||
if (VIR_STRDUP_QUIET(driver.config->vncTLSx509certdir, "/etc/pki/libvirt-vnc") < 0)
|
||||
return EXIT_FAILURE;
|
||||
VIR_FREE(driver.config->spiceTLSx509certdir);
|
||||
if (VIR_STRDUP_QUIET(driver.config->spiceTLSx509certdir, "/etc/pki/libvirt-spice") < 0)
|
||||
return EXIT_FAILURE;
|
||||
VIR_FREE(driver.config->chardevTLSx509certdir);
|
||||
if (VIR_STRDUP_QUIET(driver.config->chardevTLSx509certdir, "/etc/pki/libvirt-chardev") < 0)
|
||||
return EXIT_FAILURE;
|
||||
|
||||
VIR_FREE(driver.config->stateDir);
|
||||
if (VIR_STRDUP_QUIET(driver.config->stateDir, "/nowhere") < 0)
|
||||
|
|
Loading…
Reference in New Issue