From e17149cb3b1c91741440a6ea2e85823bda26665b Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Tue, 16 Feb 2021 14:43:27 +0100 Subject: [PATCH] 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. --- tests/run-test.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/run-test.sh b/tests/run-test.sh index 2cf4e4c..7d7a0e8 100755 --- a/tests/run-test.sh +++ b/tests/run-test.sh @@ -48,10 +48,16 @@ if [ -n "$test_optional" ]; then # TestUpdates: we can't run rebooting tests TESTS="$TESTS TestAutoUpdates - TestMachines TestStorage TestUpdates.testBasic 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 if [ -n "$test_basic" ]; then