TESTS, After a target/lun reset, wait until the lun stabilizes before continuing the tests

This commit is contained in:
Ronnie Sahlberg
2012-07-21 12:26:24 +10:00
parent 9205a71135
commit d8ed7d4053
3 changed files with 39 additions and 0 deletions

View File

@@ -204,6 +204,19 @@ test3:
}
printf("[OK]\n");
again:
task = iscsi_testunitready_sync(iscsi, lun);
if (task == NULL) {
printf("[FAILED]\n");
printf("Failed to send TESTUNITREADY command: %s\n", iscsi_get_error(iscsi));
ret++;
goto finished;
}
if (task->status != SCSI_STATUS_GOOD) {
scsi_free_scsi_task(task);
goto again;
}
scsi_free_scsi_task(task);
test4:

View File

@@ -204,6 +204,19 @@ test3:
}
printf("[OK]\n");
again:
task = iscsi_testunitready_sync(iscsi, lun);
if (task == NULL) {
printf("[FAILED]\n");
printf("Failed to send TESTUNITREADY command: %s\n", iscsi_get_error(iscsi));
ret++;
goto finished;
}
if (task->status != SCSI_STATUS_GOOD) {
scsi_free_scsi_task(task);
goto again;
}
scsi_free_scsi_task(task);
test4:

View File

@@ -204,6 +204,19 @@ test3:
}
printf("[OK]\n");
again:
task = iscsi_testunitready_sync(iscsi, lun);
if (task == NULL) {
printf("[FAILED]\n");
printf("Failed to send TESTUNITREADY command: %s\n", iscsi_get_error(iscsi));
ret++;
goto finished;
}
if (task->status != SCSI_STATUS_GOOD) {
scsi_free_scsi_task(task);
goto again;
}
scsi_free_scsi_task(task);
test4: