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:
@@ -83,6 +83,11 @@ int T0105_read10_invalid(const char *initiator, const char *url, int data_loss _
|
|||||||
|
|
||||||
goto finished;
|
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) {
|
if (task->status != SCSI_STATUS_GOOD) {
|
||||||
printf("[FAILED]\n");
|
printf("[FAILED]\n");
|
||||||
printf("Read10 of 1 block with iscsi ExpectedDataTransferLength==0 should not fail.\n");
|
printf("Read10 of 1 block with iscsi ExpectedDataTransferLength==0 should not fail.\n");
|
||||||
|
|||||||
@@ -81,6 +81,11 @@ int T0122_read6_invalid(const char *initiator, const char *url, int data_loss _U
|
|||||||
|
|
||||||
goto finished;
|
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) {
|
if (task->status != SCSI_STATUS_GOOD) {
|
||||||
printf("[FAILED]\n");
|
printf("[FAILED]\n");
|
||||||
printf("Read6 of 1 block with iscsi ExpectedDataTransferLength==0 should not fail.\n");
|
printf("Read6 of 1 block with iscsi ExpectedDataTransferLength==0 should not fail.\n");
|
||||||
|
|||||||
Reference in New Issue
Block a user