virt-v2v/tests/basic-test.sh
Richard W.M. Jones b0b9f03020 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 b004c17388)
2021-06-16 20:51:52 +01:00

14 lines
304 B
Bash
Executable File

#!/bin/bash -
set -e
set -x
# This only makes sure that virt-v2v isn't totally broken.
# 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