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:
Ronnie Sahlberg
2013-01-06 15:04:31 -08:00
parent d21ad441bf
commit 179d7b4f55
5 changed files with 39 additions and 9 deletions

View File

@@ -40,6 +40,7 @@
#define discard_const(ptr) ((void *)((intptr_t)(ptr)))
#endif
int loglevel = LOG_VERBOSE;
int (*real_iscsi_queue_pdu)(struct iscsi_context *iscsi, struct iscsi_pdu *pdu);