Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DAOS-16052 test: Skip wal tests if fault injection feature is disabled #14600

Merged
merged 2 commits into from
Jun 18, 2024
Merged
Changes from 1 commit
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
Next Next commit
DAOS-16052 test: Skip wal tests if fault injection feature is disabled
some tests required fault injection, skip these tests if
this feature is not enabled.

Skip-func-hw-test: true
Required-githooks: true
Signed-off-by: Wang Shilong <shilong.wang@intel.com>
  • Loading branch information
Wang Shilong committed Jun 18, 2024
commit 308635f931c7c10896b1918f094ee07ffa058f24
11 changes: 10 additions & 1 deletion src/vos/tests/vts_wal.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* (C) Copyright 2022-2023 Intel Corporation.
* (C) Copyright 2022-2024 Intel Corporation.
*
* SPDX-License-Identifier: BSD-2-Clause-Patent
*/
@@ -280,6 +280,9 @@ wal_tst_pool_cont(void **state)
vos_pool_info_t pool_info1 = { 0 }, pool_info2 = { 0 };
int rc;

if (arg->wta_no_replay)
FAULT_INJECTION_REQUIRED();

uuid_generate(pool_id);
uuid_generate(cont_id);

@@ -457,6 +460,9 @@ wal_kv_basic(void **state)
unsigned int small_sz = 16, large_sz = 8192;
int i;

if (arg->no_replay)
FAULT_INJECTION_REQUIRED();

oid = dts_unit_oid_gen(0, 0);

dts_key_gen(dkey, UPDATE_DKEY_SIZE, UPDATE_DKEY);
@@ -799,6 +805,9 @@ wal_io_multiple_updates(void **state)
char *up, *f, *ak, *dk;
int i, j, rc = 0;

if (arg->fail_checkpoint || arg->no_replay || arg->fail_replay)
FAULT_INJECTION_REQUIRED();

num_keys = WAL_IO_MULTI_KEYS;
if (arg->fail_checkpoint)
num_keys = WAL_IO_MULTI_KEYS * 4;
Loading