From b0b9f03020fdaec84e95f7457a082b131a3ef424 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Fri, 11 Jun 2021 18:43:04 +0100 Subject: [PATCH] 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 related: rhbz#1950634 (cherry picked from commit b004c173884be5dd7d7f4b516a9f60ea93f174f0) --- tests/basic-test.sh | 3 +++ tests/tests.yml | 1 + 2 files changed, 4 insertions(+) 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: .