Skip to content

Commit

Permalink
Merge pull request ceph#42234 from sseshasa/wip-fix-standalone-cleanups
Browse files Browse the repository at this point in the history
qa/standalone: Add missing cleanups after completion of a subset of osd and scrub tests.

Reviewed-by:  Ronen Friedman <[email protected]>
Reviewed-by:  Neha Ojha <[email protected]>
  • Loading branch information
sseshasa authored Jul 9, 2021
2 parents 4b2d072 + 84cab65 commit 3111ba8
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 70 deletions.
3 changes: 2 additions & 1 deletion qa/standalone/osd/osd-force-create-pg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,15 @@ function run() {

local funcs=${@:-$(set | sed -n -e 's/^\(TEST_[0-9a-z_]*\) .*/\1/p')}
for func in $funcs ; do
setup $dir || return 1
$func $dir || return 1
teardown $dir || return 1
done
}

function TEST_reuse_id() {
local dir=$1

setup $dir || return 1
run_mon $dir a --osd_pool_default_size=1 --mon_allow_pool_size_one=true || return 1
run_mgr $dir x || return 1
run_osd $dir 0 || return 1
Expand Down
3 changes: 2 additions & 1 deletion qa/standalone/osd/osd-reuse-id.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,15 @@ function run() {

local funcs=${@:-$(set | sed -n -e 's/^\(TEST_[0-9a-z_]*\) .*/\1/p')}
for func in $funcs ; do
setup $dir || return 1
$func $dir || return 1
teardown $dir || return 1
done
}

function TEST_reuse_id() {
local dir=$1

setup $dir || return 1
run_mon $dir a --osd_pool_default_size=1 --mon_allow_pool_size_one=true || return 1
run_mgr $dir x || return 1
run_osd $dir 0 || return 1
Expand Down
5 changes: 2 additions & 3 deletions qa/standalone/osd/pg-split-merge.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,15 @@ function run() {

local funcs=${@:-$(set | sed -n -e 's/^\(TEST_[0-9a-z_]*\) .*/\1/p')}
for func in $funcs ; do
setup $dir || return 1
$func $dir || return 1
teardown $dir || return 1
done
}

function TEST_a_merge_empty() {
local dir=$1

setup $dir || return 1
run_mon $dir a --osd_pool_default_size=3 || return 1
run_mgr $dir x || return 1
run_osd $dir 0 || return 1
Expand Down Expand Up @@ -87,7 +88,6 @@ function TEST_a_merge_empty() {
function TEST_import_after_merge_and_gap() {
local dir=$1

setup $dir || return 1
run_mon $dir a --osd_pool_default_size=1 --mon_allow_pool_size_one=true || return 1
run_mgr $dir x || return 1
run_osd $dir 0 || return 1
Expand Down Expand Up @@ -162,7 +162,6 @@ function TEST_import_after_merge_and_gap() {
function TEST_import_after_split() {
local dir=$1

setup $dir || return 1
run_mon $dir a --osd_pool_default_size=1 --mon_allow_pool_size_one=true || return 1
run_mgr $dir x || return 1
run_osd $dir 0 || return 1
Expand Down
Loading

0 comments on commit 3111ba8

Please sign in to comment.