diff --git a/tests/qemuhotplugtest.c b/tests/qemuhotplugtest.c index 674ba92b27387a8dba87275072208a0c2bce462a..3c0eecb07967ad312784a06f5b9f063c78816deb 100644 --- a/tests/qemuhotplugtest.c +++ b/tests/qemuhotplugtest.c @@ -268,6 +268,10 @@ testQemuHotplug(const void *data) if (test->vm) { vm = test->vm; + if (!vm->def) { + VIR_TEST_VERBOSE("test skipped due to failure of dependent test\n"); + goto cleanup; + } } else { if (qemuHotplugCreateObjects(driver.xmlopt, &vm, domain_xml, test->deviceDeletedEvent) < 0)