TESTS: add a new helper check_result to validate the result of SCSI helpers

Many/most all SCSI helpers do pretty much the same checking for the SCSI
result and status. Break this out into a separate helper that we can use
to reduce code duplication.

Signed-off-by: Ronnie Sahlberg <sahlberg@localhost>
TESTS: change ORWRITE to use a single helper function for all

Switch orwrite helpers to use _command_async instead of calling _orwrite_sync()
to prepare for switching to non-iscsi targets. Use the new check_result API
so that we only need a single helper function for ORWRITE instead of one
helper for each expected result.

Signed-off-by: Ronnie Sahlberg <sahlberg@localhost>
TEST: update all the verify tests to a new API

Signed-off-by: Ronnie Sahlberg <sahlberg@localhost>
temp: redo the write10/12/16 commands to the new saner api

Signed-off-by: Ronnie Sahlberg <sahlberg@localhost>
TESTS: rework WRITEVERIFY* tests to the new API

Signed-off-by: Ronnie Sahlberg <sahlberg@localhost>
TESTS: update writesame tests to new API

Signed-off-by: Ronnie Sahlberg <sahlberg@localhost>
TESTS: update the prefetch tests to the new api

Signed-off-by: Ronnie Sahlberg <sahlberg@localhost>
TESTS: update the READ tests to the new API

Signed-off-by: Ronnie Sahlberg <sahlberg@localhost>
TESTS: update startstopunit to use new api

Signed-off-by: Ronnie Sahlberg <sahlberg@localhost>
TESTS: add ASCQ check to miscompare

Signed-off-by: Ronnie Sahlberg <sahlberg@localhost>
TESTS: change testunitready to new api

Signed-off-by: Ronnie Sahlberg <sahlberg@localhost>
TESTS: update read6 to new api

Signed-off-by: Ronnie Sahlberg <sahlberg@localhost>
TESTS: update synchronizecache to new api

Signed-off-by: Ronnie Sahlberg <sahlberg@localhost>
TESTS: convert compareandwrite to new api

Signed-off-by: Ronnie Sahlberg <sahlberg@localhost>
TESTS: convert readcapacity to new api

Signed-off-by: Ronnie Sahlberg <sahlberg@localhost>
TESTS: change get_lba_status to new api

Signed-off-by: Ronnie Sahlberg <sahlberg@localhost>
TESTS: remove the read10_task helper

Signed-off-by: Ronnie Sahlberg <sahlberg@localhost>
TESTS: update unmap to new api

Signed-off-by: Ronnie Sahlberg <sahlberg@localhost>
TESTS: update inquiry to new api

Signed-off-by: Ronnie Sahlberg <sahlberg@localhost>
TESTS: update reportsupportedopcodes to new api

Signed-off-by: Ronnie Sahlberg <sahlberg@localhost>