TESTS: keep the unmarshalled std inq structure around

This commit is contained in:
Ronnie Sahlberg
2013-05-11 17:07:59 -07:00
parent 772d220217
commit 5135836ee5
40 changed files with 186 additions and 222 deletions

View File

@@ -55,7 +55,7 @@ int T0360_startstopunit_simple(const char *initiator, const char *url)
ret = 0;
if (removable) {
if (inq->rmb) {
printf("Media is removable. STARTSTOPUNIT should work\n");
} else {
printf("Media is not removable. STARTSTOPUNIT should fail\n");
@@ -80,7 +80,7 @@ int T0360_startstopunit_simple(const char *initiator, const char *url)
scsi_free_scsi_task(task);
printf("[OK]\n");
if (removable) {
if (inq->rmb) {
printf("Medium is removable. Check with TESTUNITREADY that was removed.\n");
ret = testunitready_nomedium(iscsi, lun);
if (ret != 0) {
@@ -138,7 +138,7 @@ int T0360_startstopunit_simple(const char *initiator, const char *url)
scsi_free_scsi_task(task);
printf("[OK]\n");
if (removable) {
if (inq->rmb) {
printf("Medium is removable. Check with TESTUNITREADY that was removed.\n");
ret = testunitready_nomedium(iscsi, lun);
if (ret != 0) {