mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
ci: Fix virtio-fs tests
The virtiofsd daemon takes a bit of time creating and listening on the socket. By adding 10s timeout, we make sure the vhost-user socket has been properly created before the VMM tries to connect to it. Also, the daemon needs cap_dac_override capabilities to access debugfs filesystem. Last thing, both virtio-fs and virtio-pmem tests were slightly different from the others since they were not explicitly killing cloud-hypervisor and virtiofsd processes once the test was done. Fixes #182 Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
This commit is contained in:
committed by
Rob Bradford
parent
b528e99b18
commit
dc31db478a
@@ -89,7 +89,7 @@ if [ ! -f "$VIRTIOFSD" ]; then
|
||||
cp virtiofsd $VIRTIOFSD
|
||||
popd
|
||||
rm -rf $QEMU_DIR
|
||||
sudo setcap cap_sys_admin+epi "virtiofsd"
|
||||
sudo setcap cap_dac_override,cap_sys_admin+epi "virtiofsd"
|
||||
popd
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user