TESTS: Add different log levels to the TUR test test suite and see how it looks
Add different log levels and update the TUR testsute. Update the helper for testunitready() so that it * prints FAILURE messages for normal and verbose levels * prints selfdocumenting messages for which SCSI command it sends and the expected result for the verbose level
This commit is contained in:
@@ -47,6 +47,7 @@
|
||||
|
||||
#define PROG "iscsi-test-cu"
|
||||
|
||||
int loglevel = LOG_NORMAL;
|
||||
|
||||
/* XXX what is this for? */
|
||||
int (*real_iscsi_queue_pdu)(struct iscsi_context *iscsi, struct iscsi_pdu *pdu);
|
||||
@@ -319,12 +320,14 @@ main(int argc, char *argv[])
|
||||
break;
|
||||
case 's':
|
||||
mode = CU_BRM_SILENT;
|
||||
loglevel = LOG_SILENT;
|
||||
break;
|
||||
case 'n':
|
||||
mode = CU_BRM_NORMAL;
|
||||
break;
|
||||
case 'v':
|
||||
mode = CU_BRM_VERBOSE; /* default */
|
||||
loglevel = LOG_VERBOSE;
|
||||
break;
|
||||
default:
|
||||
fprintf(stderr,
|
||||
|
||||
Reference in New Issue
Block a user