Fix RHEL gating tests
These would always fail because libvirt doesn't start up after being installed. You would see errors like: libguestfs: opening libvirt handle: URI = qemu:///system, auth = default+wrapper, flags = 0 libvirt: XML-RPC error : Failed to connect socket to '/var/run/libvirt/virtqemud-sock': No such file or directory libguestfs: error: could not connect to libvirt (URI = qemu:///system): Failed to connect socket to '/var/run/libvirt/virtqemud-sock': No such file or directory [code=38 int1=2] (cherry picked from Fedora commit a1eed9c04c9e64cf24bc83a0da2cd6b05f7400c3)
This commit is contained in:
parent
f021d89f94
commit
2ea5842951
10
tests/run-libguestfs-test-tool.sh
Executable file
10
tests/run-libguestfs-test-tool.sh
Executable file
@ -0,0 +1,10 @@
|
|||||||
|
#!/bin/bash -
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
|
||||||
|
# This only makes sure that libguestfs isn't totally broken.
|
||||||
|
|
||||||
|
# Fix libvirt.
|
||||||
|
systemctl restart virtqemud virtsecretd virtstoraged virtnetworkd
|
||||||
|
|
||||||
|
libguestfs-test-tool
|
@ -5,9 +5,10 @@
|
|||||||
- role: standard-test-basic
|
- role: standard-test-basic
|
||||||
tags:
|
tags:
|
||||||
- classic
|
- classic
|
||||||
|
required_packages:
|
||||||
|
- libguestfs
|
||||||
|
- libvirt-daemon-kvm
|
||||||
tests:
|
tests:
|
||||||
- libguestfs-test-tool:
|
- libguestfs-test-tool:
|
||||||
dir: .
|
dir: .
|
||||||
run: libguestfs-test-tool
|
run: ./run-libguestfs-test-tool.sh
|
||||||
required_packages:
|
|
||||||
- libguestfs
|
|
||||||
|
Loading…
Reference in New Issue
Block a user