TESTS: For the invalid tests, treat the target dropping the session as OK

Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
This commit is contained in:
Ronnie Sahlberg
2012-08-01 16:38:30 +10:00
parent 77d8e41be7
commit d5d062a494
2 changed files with 10 additions and 0 deletions

View File

@@ -83,6 +83,11 @@ int T0105_read10_invalid(const char *initiator, const char *url, int data_loss _
goto finished;
}
if (task->status == SCSI_STATUS_CANCELLED) {
scsi_free_scsi_task(task);
printf("Target dropped the session [OK]\n");
goto test2;
}
if (task->status != SCSI_STATUS_GOOD) {
printf("[FAILED]\n");
printf("Read10 of 1 block with iscsi ExpectedDataTransferLength==0 should not fail.\n");

View File

@@ -81,6 +81,11 @@ int T0122_read6_invalid(const char *initiator, const char *url, int data_loss _U
goto finished;
}
if (task->status == SCSI_STATUS_CANCELLED) {
scsi_free_scsi_task(task);
printf("Target dropped the session [OK]\n");
goto test2;
}
if (task->status != SCSI_STATUS_GOOD) {
printf("[FAILED]\n");
printf("Read6 of 1 block with iscsi ExpectedDataTransferLength==0 should not fail.\n");