Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/tests/suite/daos_aggregate_ec.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/** * (C) Copyright 2020-2022 Intel Corporation.
/**
* (C) Copyright 2020-2022 Intel Corporation.
* (C) Copyright 2026 Hewlett Packard Enterprise Development LP
*
* SPDX-License-Identifier: BSD-2-Clause-Patent
*/
Expand Down Expand Up @@ -845,8 +847,7 @@ test_all_ec_agg(void **statep)
test_arg_t *arg = *statep;
struct ec_agg_test_ctx ctx = { 0 };

if (!test_runable(arg, 5))

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The misspelling is existing, but runable -> runnable

return;
test_runnable_or_skip(arg, 5);

daos_pool_set_prop(arg->pool.pool_uuid, "reclaim", "disabled");
setup_ec_agg_tests(statep, &ctx);
Expand Down Expand Up @@ -892,8 +893,7 @@ fetch_snap_with_agg(void **statep)
bool snap_higher = false;
int rc;

if (!test_runable(arg, 4))
skip();
test_runnable_or_skip(arg, 4);

FAULT_INJECTION_REQUIRED();

Expand Down
3 changes: 1 addition & 2 deletions src/tests/suite/daos_array.c
Original file line number Diff line number Diff line change
Expand Up @@ -1229,8 +1229,7 @@ ec_array_key_query(void **state)
int rc;

par_barrier(PAR_COMM_WORLD);
if (!test_runable(arg, 6))
skip();
test_runnable_or_skip(arg, 6);

oid = daos_test_oid_gen(arg->coh, OC_EC_4P1G1, typeb, 0, arg->myrank);

Expand Down
48 changes: 16 additions & 32 deletions src/tests/suite/daos_base_tx.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,7 @@ dtx_io_test_succ(void **state, daos_iod_type_t iod_type)
daos_obj_id_t oid;
struct ioreq req;

if (!test_runable(arg, dts_dtx_replica_cnt))
return;
test_runnable_or_skip(arg, dts_dtx_replica_cnt);

D_ALLOC(update_buf, dts_dtx_iosize);
assert_non_null(update_buf);
Expand Down Expand Up @@ -133,8 +132,7 @@ dtx_io_test_fail(void **state, uint64_t fail_loc)
daos_obj_id_t oid;
struct ioreq req;

if (!test_runable(arg, dts_dtx_replica_cnt))
return;
test_runnable_or_skip(arg, dts_dtx_replica_cnt);

D_ALLOC(update_buf1, dts_dtx_iosize);
assert_non_null(update_buf1);
Expand Down Expand Up @@ -251,8 +249,7 @@ dtx_fetch_committable(void **state, bool punch)
struct ioreq req;
int rc;

if (!test_runable(arg, dts_dtx_replica_cnt))
return;
test_runnable_or_skip(arg, dts_dtx_replica_cnt);

D_ALLOC(update_buf1, dts_dtx_iosize);
assert_non_null(update_buf1);
Expand Down Expand Up @@ -336,8 +333,7 @@ dtx_modify_committable(void **state, bool committable_punch, bool sync_update)
daos_obj_id_t oid;
struct ioreq req;

if (!test_runable(arg, dts_dtx_replica_cnt))
return;
test_runnable_or_skip(arg, dts_dtx_replica_cnt);

D_ALLOC(update_buf1, dts_dtx_iosize);
assert_non_null(update_buf1);
Expand Down Expand Up @@ -420,8 +416,7 @@ dtx_batched_commit(void **state, int count)
int rc;
int i;

if (!test_runable(arg, dts_dtx_replica_cnt))
return;
test_runnable_or_skip(arg, dts_dtx_replica_cnt);

D_ALLOC(update_buf, size);
assert_non_null(update_buf);
Expand Down Expand Up @@ -540,8 +535,7 @@ dtx_14(void **state)

print_message("Resend with lost multiple replicated obj request\n");

if (!test_runable(arg, dts_dtx_replica_cnt))
return;
test_runnable_or_skip(arg, dts_dtx_replica_cnt);

dtx_handle_resend(state, DAOS_DTX_LOST_RPC_REQUEST | DAOS_FAIL_ALWAYS,
dts_dtx_class);
Expand All @@ -554,8 +548,7 @@ dtx_15(void **state)

print_message("Resend with lost multiple replicated obj reply\n");

if (!test_runable(arg, dts_dtx_replica_cnt))
return;
test_runnable_or_skip(arg, dts_dtx_replica_cnt);

dtx_handle_resend(state, DAOS_DTX_LOST_RPC_REPLY | DAOS_FAIL_ALWAYS,
dts_dtx_class);
Expand All @@ -575,8 +568,7 @@ dtx_16(void **state)

print_message("Resend after DTX aggregation\n");

if (!test_runable(arg, dts_dtx_replica_cnt))
return;
test_runnable_or_skip(arg, dts_dtx_replica_cnt);

D_ALLOC(update_buf, dts_dtx_iosize);
assert_non_null(update_buf);
Expand Down Expand Up @@ -631,8 +623,7 @@ dtx_17(void **state)

print_message("DTX resync during open-close\n");

if (!test_runable(arg, dts_dtx_replica_cnt))
return;
test_runnable_or_skip(arg, dts_dtx_replica_cnt);

D_ALLOC(update_buf, dts_dtx_iosize);
assert_non_null(update_buf);
Expand Down Expand Up @@ -735,8 +726,7 @@ dtx_19(void **state)

print_message("DTX resend during bulk data transfer - multiple reps\n");

if (!test_runable(arg, 2))
return;
test_runnable_or_skip(arg, 2);

dtx_resend_delay(arg, OC_RP_2G1);
}
Expand All @@ -757,8 +747,7 @@ dtx_20(void **state)

print_message("race between DTX refresh and DTX resync\n");

if (!test_runable(arg, dts_dtx_replica_cnt))
return;
test_runnable_or_skip(arg, dts_dtx_replica_cnt);

D_ALLOC(update_buf, dts_dtx_iosize);
assert_non_null(update_buf);
Expand Down Expand Up @@ -860,8 +849,7 @@ dtx_21(void **state)

print_message("do not abort partially committed DTX\n");

if (!test_runable(arg, dts_dtx_replica_cnt))
return;
test_runnable_or_skip(arg, dts_dtx_replica_cnt);

D_ALLOC(update_buf, dts_dtx_iosize);
assert_non_null(update_buf);
Expand Down Expand Up @@ -910,8 +898,7 @@ dtx_22(void **state)

print_message("iteration does not return aborted DTX\n");

if (!test_runable(arg, dts_dtx_replica_cnt))
return;
test_runnable_or_skip(arg, dts_dtx_replica_cnt);

oid = daos_test_oid_gen(arg->coh, dts_dtx_class, DAOS_OT_MULTI_UINT64, 0, arg->myrank);
rc = daos_obj_open(arg->coh, oid, DAOS_OO_RW, &oh, NULL);
Expand Down Expand Up @@ -1002,8 +989,7 @@ dtx_23(void **state)

print_message("DTX23: Resend with lost reply from non-leader\n");

if (!test_runable(arg, dts_dtx_replica_cnt))
return;
test_runnable_or_skip(arg, dts_dtx_replica_cnt);

D_ALLOC(update_buf, dts_dtx_iosize);
assert_non_null(update_buf);
Expand Down Expand Up @@ -1044,8 +1030,7 @@ dtx_24(void **state)

print_message("DTX24: DTX commit under space pressure with single container\n");

if (!test_runable(arg, dts_dtx_replica_cnt))
return;
test_runnable_or_skip(arg, dts_dtx_replica_cnt);

oid = daos_test_oid_gen(arg->coh, dts_dtx_class, 0, 0, arg->myrank);
ioreq_init(&req, arg->coh, oid, DAOS_IOD_ARRAY, arg);
Expand Down Expand Up @@ -1124,8 +1109,7 @@ dtx_25(void **state)

print_message("DTX25: DTX commit under space pressure with multiple containers\n");

if (!test_runable(arg, 3))
return;
test_runnable_or_skip(arg, 3);

redun_prop = daos_prop_alloc(1);
assert_non_null(redun_prop);
Expand Down
45 changes: 21 additions & 24 deletions src/tests/suite/daos_checksum.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/**
* (C) Copyright 2019-2023 Intel Corporation.
* (C) Copyright 2026 Hewlett Packard Enterprise Development LP
*
* SPDX-License-Identifier: BSD-2-Clause-Patent
*/
Expand Down Expand Up @@ -346,8 +347,8 @@ checksum_disabled(void **state)
daos_oclass_id_t oc = dts_csum_oc;
int rc;

if (csum_ec_enabled() && !test_runable(*state, csum_ec_grp_size()))
skip();
if (csum_ec_enabled())
test_runnable_or_skip(*state, csum_ec_grp_size());

/**
* Setup
Expand Down Expand Up @@ -388,8 +389,8 @@ io_with_server_side_verify(void **state)

FAULT_INJECTION_REQUIRED();

if (csum_ec_enabled() && !test_runable(*state, csum_ec_grp_size()))
skip();
if (csum_ec_enabled())
test_runnable_or_skip(*state, csum_ec_grp_size());

/**
* Setup
Expand Down Expand Up @@ -491,8 +492,8 @@ test_fetch_array(void **state)

FAULT_INJECTION_REQUIRED();

if (csum_ec_enabled() && !test_runable(*state, csum_ec_grp_size()))
skip();
if (csum_ec_enabled())
test_runnable_or_skip(*state, csum_ec_grp_size());

/**
* Setup
Expand Down Expand Up @@ -577,7 +578,7 @@ test_fetch_array(void **state)
node_nr = 2;
oc = OC_RP_2GX;
}
if (test_runable(*state, node_nr)) {
if (test_runnable(*state, node_nr)) {
/** 5. Replicated object with corruption */
cleanup_cont_obj(&ctx);
setup_cont_obj(&ctx, dts_csum_prop_type, false, 1024 * 8, oc);
Expand Down Expand Up @@ -1309,8 +1310,8 @@ single_value(void **state)
{
FAULT_INJECTION_REQUIRED();

if (csum_ec_enabled() && !test_runable(*state, csum_ec_grp_size()))
skip();
if (csum_ec_enabled())
test_runnable_or_skip(*state, csum_ec_grp_size());

print_message("test small single-value\n");
single_value_test(state, false);
Expand All @@ -1327,8 +1328,8 @@ dtx_with_csum(void **state)
daos_oclass_id_t oc = dts_csum_oc;
int rc;

if (csum_ec_enabled() && !test_runable(arg, csum_ec_grp_size()))
skip();
if (csum_ec_enabled())
test_runnable_or_skip(arg, csum_ec_grp_size());

setup_from_test_args(&ctx, arg);
setup_simple_data(&ctx);
Expand Down Expand Up @@ -1796,8 +1797,7 @@ rebuild_test(void **state, int chunksize, int data_len_bytes, int iod_type)
d_rank_list_t *affected_engines = NULL;
int rc;

if (!test_runable(*state, 3))
skip();
test_runnable_or_skip(*state, 3);

setup_from_test_args(&ctx, *state);
setup_cont_obj(&ctx, DAOS_PROP_CO_CSUM_CRC64, false, chunksize,
Expand Down Expand Up @@ -2524,9 +2524,7 @@ ec_chunk_plus_one(void **state)
{
const uint32_t ec_chunk_plus_one = 1024 * 1024 + 1;

if (!test_runable(*state, 3))
skip();

test_runnable_or_skip(*state, 3);

ARRAY_UPDATE_FETCH_TESTCASE(state, {
.oclass = OC_EC_2P1G1,
Expand All @@ -2546,8 +2544,7 @@ ec_two_chunk_plus_one(void **state)
{
const uint32_t ec_chunk_plus_one = 2 * 1024 * 1024 + 1;

if (!test_runable(*state, 3))
skip();
test_runnable_or_skip(*state, 3);

ARRAY_UPDATE_FETCH_TESTCASE(state, {
.oclass = OC_EC_2P1G1,
Expand All @@ -2569,8 +2566,8 @@ basic_scrubbing_test(void **state, char *scrub_freq)
daos_oclass_id_t oc = dts_csum_oc;
int rc;

if (csum_ec_enabled() && !test_runable(*state, csum_ec_grp_size()))
skip();
if (csum_ec_enabled())
test_runnable_or_skip(*state, csum_ec_grp_size());

/**
* Setup
Expand Down Expand Up @@ -2638,8 +2635,8 @@ multiple_ec_singv_csum(void **state)

FAULT_INJECTION_REQUIRED();

if (csum_ec_enabled() && !test_runable(arg, csum_ec_grp_size()))
skip();
if (csum_ec_enabled())
test_runnable_or_skip(arg, csum_ec_grp_size());

setup_from_test_args(&ctx, *state);
setup_cont_obj(&ctx, dts_csum_prop_type, true, 0, oc);
Expand Down Expand Up @@ -2715,8 +2712,8 @@ multiple_ec_singv_csum_with_iod_size_0(void **state)
size_t len[3];
int i, rc;

if (csum_ec_enabled() && !test_runable(arg, csum_ec_grp_size()))
skip();
if (csum_ec_enabled())
test_runnable_or_skip(arg, csum_ec_grp_size());

setup_from_test_args(&ctx, *state);
setup_cont_obj(&ctx, dts_csum_prop_type, true, 0, oc);
Expand Down
6 changes: 2 additions & 4 deletions src/tests/suite/daos_container.c
Original file line number Diff line number Diff line change
Expand Up @@ -2723,8 +2723,7 @@ co_rf_simple(void **state)
FAULT_INJECTION_REQUIRED();

/* needs 3 alive nodes after excluding 3 */
if (!test_runable(arg0, 6))
skip();
test_runnable_or_skip(arg0, 6);

print_message("create container with properties, and query/verify.\n");
rc = test_setup((void **)&arg, SETUP_POOL_CONNECT, arg0->multi_rank,
Expand Down Expand Up @@ -3138,8 +3137,7 @@ co_redun_lvl(void **state)

FAULT_INJECTION_REQUIRED();

if (!test_runable(arg0, 8))
skip();
test_runnable_or_skip(arg0, 8);

print_message("create container with properties, and query/verify.\n");
rc = test_setup((void **)&arg, SETUP_POOL_CONNECT, arg0->multi_rank,
Expand Down
Loading
Loading