iscsi-test: return -2 when skipping tests

This lets a test driver distinguish failure from skipping unsupported
tests.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
Paolo Bonzini
2012-08-30 17:12:46 +02:00
parent c7b519524c
commit e4377e7d91
65 changed files with 89 additions and 69 deletions

View File

@@ -63,7 +63,7 @@ int T0232_write12_flags(const char *initiator, const char *url, int data_loss, i
if (inq->periperal_device_type != SCSI_INQUIRY_PERIPHERAL_DEVICE_TYPE_DIRECT_ACCESS) {
printf("LUN is not SBC device. Skipping test\n");
scsi_free_scsi_task(task);
return -1;
return -2;
}
/* find the size of the LUN */
@@ -110,7 +110,7 @@ int T0232_write12_flags(const char *initiator, const char *url, int data_loss, i
if (!data_loss) {
printf("--dataloss flag is not set. Skipping test\n");
ret = -1;
ret = -2;
goto finished;
}