Skip to content

Commit

Permalink
fmf: Show "virt-host-validate qemu" in logs
Browse files Browse the repository at this point in the history
This is an useful initial self-test. In RHEL 9.5 on TF it seems to have
lost "Checking for hardware virtualization", so let's see what's going
on.

This command usually exits with non-zero on TF machines as they don't
have /dev/kvm, so guard for that.
  • Loading branch information
martinpitt authored and jelly committed Jul 11, 2024
1 parent 3d60b1e commit e8e7e05
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/browser/browser.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ fi
rpm -q selinux-policy cockpit-bridge cockpit-machines
rpm -qa | grep -E 'virt|qemu' | sort

# basic libvirt selftests
virt-host-validate qemu || echo "failed with code $?"

# allow test to set up things on the machine
mkdir -p /root/.ssh
curl https://raw.githubusercontent.com/cockpit-project/bots/main/machine/identity.pub >> /root/.ssh/authorized_keys
Expand Down

0 comments on commit e8e7e05

Please sign in to comment.