TESTS: move the default url, lun and iscsi context into a structure
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
This commit is contained in:
@@ -38,7 +38,7 @@ test_writeverify10_flags(void)
|
||||
logging(LOG_VERBOSE, "Test WRITEVERIFY10 flags");
|
||||
|
||||
logging(LOG_VERBOSE, "Test WRITEVERIFY10 with DPO==1");
|
||||
ret = writeverify10(iscsic, tgt_lun, 0,
|
||||
ret = writeverify10(sd->iscsi_ctx, sd->iscsi_lun, 0,
|
||||
block_size, block_size, 0, 1, 0, 0, buf,
|
||||
EXPECT_STATUS_GOOD);
|
||||
if (ret == -2) {
|
||||
@@ -49,7 +49,7 @@ test_writeverify10_flags(void)
|
||||
CU_ASSERT_EQUAL(ret, 0);
|
||||
|
||||
logging(LOG_VERBOSE, "Test WRITEVERIFY10 with BYTCHK==1");
|
||||
ret = writeverify10(iscsic, tgt_lun, 0,
|
||||
ret = writeverify10(sd->iscsi_ctx, sd->iscsi_lun, 0,
|
||||
block_size, block_size, 0, 0, 1, 0, buf,
|
||||
EXPECT_STATUS_GOOD);
|
||||
CU_ASSERT_EQUAL(ret, 0);
|
||||
|
||||
Reference in New Issue
Block a user