]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
tests: ceph-helpers assert success getting backfills 6699/head
authorLoic Dachary <ldachary@redhat.com>
Wed, 25 Nov 2015 11:17:14 +0000 (12:17 +0100)
committerLoic Dachary <ldachary@redhat.com>
Wed, 25 Nov 2015 11:23:45 +0000 (12:23 +0100)
Signed-off-by: Loic Dachary <loic@dachary.org>
qa/workunits/ceph-helpers.sh

index a526e09537edc959761053bd4c91ea6eceb2b291..05b1a678fb035f2bc27401de2a09c715b02e4692 100755 (executable)
@@ -422,6 +422,7 @@ function test_run_osd() {
     run_osd $dir 0 || return 1
     local backfills=$(CEPH_ARGS='' ceph --format=json daemon $dir//ceph-osd.0.asok \
         config get osd_max_backfills)
+    echo "$backfills" | grep --quiet 'osd_max_backfills' || return 1
 
     run_osd $dir 1 --osd-max-backfills 20 || return 1
     local backfills=$(CEPH_ARGS='' ceph --format=json daemon $dir//ceph-osd.1.asok \
@@ -523,6 +524,7 @@ function test_activate_osd() {
     run_osd $dir 0 || return 1
     local backfills=$(CEPH_ARGS='' ceph --format=json daemon $dir//ceph-osd.0.asok \
         config get osd_max_backfills)
+    echo "$backfills" | grep --quiet 'osd_max_backfills' || return 1
 
     kill_daemons $dir TERM osd || return 1
 
@@ -670,6 +672,8 @@ function test_get_config() {
     teardown $dir || return 1
 }
 
+#######################################################################
+
 ##
 # Set the **config** to specified **value**, via the config set command
 # of the admin socket of **daemon**.**id**