From b004c173884be5dd7d7f4b516a9f60ea93f174f0 Mon Sep 17 00:00:00 2001 From: Richard W.M. Jones Date: Jun 11 2021 17:43:04 +0000 Subject: tests: Try harder to fix libvirt Tests failed previously with: libvirt: XML-RPC error : Failed to connect socket to '/var/run/libvirt/libvirt-sock': No such file or directory --- diff --git a/tests/basic-test.sh b/tests/basic-test.sh index 9c30edc..17fc7c3 100755 --- a/tests/basic-test.sh +++ b/tests/basic-test.sh @@ -6,5 +6,8 @@ set -x # virt-v2v is extensively tested on real guests by the QE # team using a mix of automated and manual testing. +# Fix libvirt. +systemctl restart libvirtd + virt-builder fedora-30 virt-v2v -i disk fedora-30.img -o null diff --git a/tests/tests.yml b/tests/tests.yml index e67d372..9dae6bd 100644 --- a/tests/tests.yml +++ b/tests/tests.yml @@ -6,6 +6,7 @@ required_packages: - virt-v2v - guestfs-tools + - libvirt-daemon-kvm tests: - simple: dir: .