tests: Only run one Machines test on VM instance without /dev/kvm

Each Machines test takes about 4 minutes with QEMU emulation, and they
are very prone to failing. Due to the automatic retry, the Machines
tests currently take about 6 hours on Fedora gating infrastructure, and
are just about impossible to get succeeding.
This commit is contained in:
Martin Pitt 2021-02-16 14:43:27 +01:00
parent 6f3becab15
commit e17149cb3b

View File

@ -48,10 +48,16 @@ if [ -n "$test_optional" ]; then
# TestUpdates: we can't run rebooting tests # TestUpdates: we can't run rebooting tests
TESTS="$TESTS TESTS="$TESTS
TestAutoUpdates TestAutoUpdates
TestMachines
TestStorage TestStorage
TestUpdates.testBasic TestUpdates.testBasic
TestUpdates.testSecurityOnly" TestUpdates.testSecurityOnly"
# Fedora gating tests are running on infra without /dev/kvm; Machines tests are too darn slow there
if [ -w /dev/kvm ]; then
TESTS="$TESTS TestMachines"
else
TESTS="$TESTS TestMachinesCreate.testCreateImportDisk"
fi
fi fi
if [ -n "$test_basic" ]; then if [ -n "$test_basic" ]; then