diff options
author | Osier Yang <jyang@redhat.com> | 2014-01-30 19:48:23 +0800 |
---|---|---|
committer | Pavel Hrdina <phrdina@redhat.com> | 2014-01-30 16:34:43 +0100 |
commit | 14177ebc2424a0f7d734d9974c557fb75cb6185c (patch) | |
tree | 840431bbd5cf770344e4696f4cc11a5a9d70ccfe /tests/virscsitest.c | |
parent | b1b81efe9a21b7e80e4f0523e67728999931ef89 (diff) | |
download | libvirt-14177ebc2424a0f7d734d9974c557fb75cb6185c.tar.gz |
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: Osier Yang <jyang@redhat.com>
Diffstat (limited to 'tests/virscsitest.c')
-rw-r--r-- | tests/virscsitest.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/virscsitest.c b/tests/virscsitest.c index d256a0e1c1..d4b3e4a159 100644 --- a/tests/virscsitest.c +++ b/tests/virscsitest.c @@ -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", |