]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
tests: qemuxml2argvtest: fix path to virtiofs socket
authorJán Tomko <jtomko@redhat.com>
Wed, 18 Aug 2021 10:34:06 +0000 (12:34 +0200)
committerJán Tomko <jtomko@redhat.com>
Wed, 6 Oct 2021 10:03:12 +0000 (12:03 +0200)
The mocked path in the test suite is not in sync with what libvirtd
generates.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
tests/qemuxml2argvdata/vhost-user-fs-fd-memory.x86_64-latest.args
tests/qemuxml2argvdata/vhost-user-fs-hugepages.x86_64-latest.args
tests/qemuxml2argvtest.c

index 7586a8edbf4e28202f6a9eeb8c5bcf50b6d44b94..8adab6da8115c7dc7ef0e44a20e9c6fdb29ceade 100644 (file)
@@ -27,7 +27,7 @@ XDG_CONFIG_HOME=/tmp/lib/domain--1-guest/.config \
 -no-shutdown \
 -no-acpi \
 -boot strict=on \
--chardev socket,id=chr-vu-fs0,path=/tmp/lib/domain--1-guest/fs0.vhost-fs.sock \
+-chardev socket,id=chr-vu-fs0,path=/tmp/lib/domain--1-guest/fs0-fs.sock \
 -device vhost-user-fs-pci,id=fs0,chardev=chr-vu-fs0,queue-size=1024,tag=mount_tag,bus=pci.0,addr=0x2 \
 -audiodev id=audio1,driver=none \
 -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,resourcecontrol=deny \
index 290d0b9e2fd397ffed2dbc0157635894c6cb1a84..415845674489cef1fa08ef4b13de827d5f53be84 100644 (file)
@@ -33,7 +33,7 @@ XDG_CONFIG_HOME=/tmp/lib/domain--1-guest/.config \
 -blockdev '{"driver":"file","filename":"/var/lib/libvirt/images/guest.qcow2","node-name":"libvirt-1-storage","auto-read-only":true,"discard":"unmap"}' \
 -blockdev '{"node-name":"libvirt-1-format","read-only":false,"driver":"qcow2","file":"libvirt-1-storage"}' \
 -device virtio-blk-pci,bus=pci.4,addr=0x0,drive=libvirt-1-format,id=virtio-disk0,bootindex=1 \
--chardev socket,id=chr-vu-fs0,path=/tmp/lib/domain--1-guest/fs0.vhost-fs.sock \
+-chardev socket,id=chr-vu-fs0,path=/tmp/lib/domain--1-guest/fs0-fs.sock \
 -device vhost-user-fs-pci,id=fs0,chardev=chr-vu-fs0,tag=mount_tag,bootindex=2,bus=pci.1,addr=0x0 \
 -audiodev id=audio1,driver=none \
 -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,resourcecontrol=deny \
index 94aaa2f53e93ef7f82db5693b232df5f10a10b90..e35380293c7e7a5a013426a1647eb6e0d167e09f 100644 (file)
@@ -444,7 +444,7 @@ testCompareXMLToArgvCreateArgs(virQEMUDriver *drv,
             QEMU_DOMAIN_FS_PRIVATE(fs)->vhostuser_fs_sock)
             continue;
 
-        s = g_strdup_printf("/tmp/lib/domain--1-guest/fs%zu.vhost-fs.sock", i);
+        s = g_strdup_printf("/tmp/lib/domain--1-guest/fs%zu-fs.sock", i);
         QEMU_DOMAIN_FS_PRIVATE(fs)->vhostuser_fs_sock = s;
     }