提交 5319c49c 编写于 作者: J John Ferlan

tests: Add createVHBAByNodeDevice-no-parent to fchosttest

Add a test that allows not providing a parent in the input XML, but still
being able to create finding a VPORT capable NPIV HBA.
上级 7ad479d0
......@@ -44,6 +44,15 @@ static const char test7_xml[] =
" </capability>"
"</device>";
/* virNodeDeviceCreateXML without "<parent>" to find the vport capable HBA */
static const char test8_xml[] =
"<device>"
" <capability type='scsi_host'>"
" <capability type='fc_host'>"
" </capability>"
" </capability>"
"</device>";
/* Test virIsVHBACapable */
static int
test1(const void *data ATTRIBUTE_UNUSED)
......@@ -270,6 +279,9 @@ mymain(void)
if (virTestRun("manageVHBAByNodeDevice-by-parent", manageVHBAByNodeDevice,
test7_xml) < 0)
ret = -1;
if (virTestRun("manageVHBAByNodeDevice-no-parent", manageVHBAByNodeDevice,
test8_xml) < 0)
ret = -1;
cleanup:
VIR_FREE(fchost_prefix);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册