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

@@ -59,15 +59,14 @@ int T0300_readonly(const char *initiator, const char *url)
return -1;
}
if (!data_loss) {
printf("--dataloss flag is not set. Skipping test\n");
ret = -2;
goto finished;
if (inq->device_type != SCSI_INQUIRY_PERIPHERAL_DEVICE_TYPE_DIRECT_ACCESS) {
logging(LOG_VERBOSE, "[SKIPPED] Not SBC device."
" Skipping test");
return -2;
}
/* This test is only valid for SBC devices */
if (device_type != SCSI_INQUIRY_PERIPHERAL_DEVICE_TYPE_DIRECT_ACCESS) {
printf("LUN is not SBC device. Skipping test\n");
if (!data_loss) {
logging(LOG_VERBOSE, "[SKIPPED] --dataloss flag not set."
" Skipping test");
return -2;
}