提交 14177ebc 编写于 作者: O Osier Yang 提交者: Pavel Hrdina

tests: Modify the scsi util tests

Add tests/virscsidata/sg0 and tests/virscsidata/sg8 as the test
input for constructing scsi->sg_path. And change the scsi generic
number of "1:0:0:0", because it's easy to hide the problem (assuming
most machines have a CDROM drive).
Signed-off-by: NOsier Yang <jyang@redhat.com>
上级 b1b81efe
......@@ -43,7 +43,7 @@ test1(const void *data ATTRIBUTE_UNUSED)
"scsi_host1", 0, 0, 0)))
return -1;
if (STRNEQ(name, "sr0"))
if (STRNEQ(name, "sdh"))
goto cleanup;
ret = 0;
......@@ -72,7 +72,7 @@ test2(const void *data ATTRIBUTE_UNUSED)
sgname = virSCSIDeviceGetSgName(virscsi_prefix,
"scsi_host1", 0, 0, 0);
if (!sgname || STRNEQ(sgname, "sg1"))
if (!sgname || STRNEQ(sgname, "sg8"))
goto cleanup;
if (!(dev = virSCSIDeviceNew(virscsi_prefix, "scsi_host1",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册