Skip to content

Commit cc1bd71

Browse files
committed
qa/standalone: Expand testing cases
Now randomly select Allocator File / Allocations on RockDB. Signed-off-by: Adam Kupczyk <[email protected]>
1 parent 76978bc commit cc1bd71

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

qa/standalone/osd/osd-bluefs-volume-ops.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ function TEST_bluestore() {
3333
CEPH_ARGS+="--bluestore_block_wal_size=536870912 "
3434
CEPH_ARGS+="--bluestore_block_wal_create=true "
3535
CEPH_ARGS+="--bluestore_fsck_on_mount=true "
36+
#choosing randomly allocation from file
37+
CEPH_ARGS+="--bluestore_allocation_from_file=$((RANDOM % 2)) "
3638

3739
run_mon $dir a || return 1
3840
run_mgr $dir x || return 1
@@ -465,7 +467,7 @@ function TEST_bluestore_expand() {
465467
total_space_after=$( ceph tell osd.0 perf dump bluefs | jq ".bluefs.slow_total_bytes" )
466468
free_space_after=`ceph tell osd.0 bluestore bluefs device info | grep "BDEV_SLOW" -A 2 | grep free | cut -d':' -f 2 | cut -d"," -f 1 | cut -d' ' -f 2`
467469

468-
if [$total_space_after != $requested_space]; then
470+
if [ $total_space_after != $requested_space ]; then
469471
echo "total_space_after = $total_space_after"
470472
echo "requested_space = $requested_space"
471473
return 1;

0 commit comments

Comments
 (0)