test-tool: Change command_is_implemented from a global variable into an argument

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
This commit is contained in:
Bart Van Assche
2021-02-08 19:01:31 -08:00
parent c7a9f51d23
commit f87a5adaa0
5 changed files with 19 additions and 9 deletions

View File

@@ -90,7 +90,10 @@ test_write16_residuals(void)
iscsi_set_noautoreconnect(sd->iscsi_ctx, 1);
for (i = 0; i < ARRAY_SIZE(write16_residuals); i++) {
write_residuals_test(&write16_residuals[i]);
bool command_is_implemented;
write_residuals_test(&write16_residuals[i],
&command_is_implemented);
if (!command_is_implemented) {
CU_PASS("WRITE16 is not implemented.");