diff options
Diffstat (limited to 'tests/qtest/pxe-test.c')
-rw-r--r-- | tests/qtest/pxe-test.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/qtest/pxe-test.c b/tests/qtest/pxe-test.c index 62b6eef..e4b4822 100644 --- a/tests/qtest/pxe-test.c +++ b/tests/qtest/pxe-test.c @@ -131,11 +131,17 @@ int main(int argc, char *argv[]) int ret; const char *arch = qtest_get_arch(); + g_test_init(&argc, &argv, NULL); + + if (!qtest_has_accel("tcg") && !qtest_has_accel("kvm")) { + g_test_skip("No KVM or TCG accelerator available"); + return 0; + } + ret = boot_sector_init(disk); if(ret) return ret; - g_test_init(&argc, &argv, NULL); if (strcmp(arch, "i386") == 0 || strcmp(arch, "x86_64") == 0) { test_batch(x86_tests, false); |