diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2025-07-16 12:16:54 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2025-07-16 12:16:54 -0400 |
commit | 747aaa6d7da49427554feecaa06752d25809ff95 (patch) | |
tree | 0df1e6b53e744b9514dc5e2fef8c53e0413e913e | |
parent | 51a47a4a676628c42f323457166bb4732a7d6f29 (diff) |
tests/fs/bcachefs/replication: add --runtime to certain fio tests
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
-rwxr-xr-x | tests/fs/bcachefs/replication.ktest | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/fs/bcachefs/replication.ktest b/tests/fs/bcachefs/replication.ktest index 729f5ba..3fece71 100755 --- a/tests/fs/bcachefs/replication.ktest +++ b/tests/fs/bcachefs/replication.ktest @@ -425,10 +425,10 @@ test_device_set_state_offline() mount -t bcachefs ${ktest_scratch_dev[0]}:${ktest_scratch_dev[1]}:${ktest_scratch_dev[2]} /mnt local fioout="$ktest_out/fio-out" - run_fio_randrw >"$fioout" 2>&1 & + run_fio_randrw --runtime=60 >"$fioout" 2>&1 & local fiopid=$! - sleep 1 + sleep 10 bcachefs device set-state --force ro ${ktest_scratch_dev[1]} @@ -460,10 +460,10 @@ test_device_readd() mount -t bcachefs ${ktest_scratch_dev[0]}:${ktest_scratch_dev[1]} /mnt local fioout="$ktest_out/fio-out" - run_fio_randrw >"$fioout" 2>&1 & + run_fio_randrw --runtime=60 >"$fioout" 2>&1 & local fiopid=$! - sleep 1 + sleep 10 echo -n "offlining ${ktest_scratch_dev[0]}... " bcachefs device offline --force ${ktest_scratch_dev[0]} |