]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
tests: reduce pg_num in test_mon_osd_pool_set
authorLoic Dachary <ldachary@redhat.com>
Sun, 31 May 2015 13:15:30 +0000 (15:15 +0200)
committerLoic Dachary <ldachary@redhat.com>
Sun, 31 May 2015 23:13:44 +0000 (01:13 +0200)
No need for more than one pg to test get/set on pools: it also is faster
to become clean.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
qa/workunits/cephtool/test.sh

index 09c11fd513b08aa483d1b7104aa283bae014fcb5..b11a217dc828046cb9bc131d5ebec61abdf7878e 100755 (executable)
@@ -1255,7 +1255,7 @@ function test_mon_pg()
 function test_mon_osd_pool_set()
 {
   TEST_POOL_GETSET=pool_getset
-  ceph osd pool create $TEST_POOL_GETSET 10
+  ceph osd pool create $TEST_POOL_GETSET 1
   ceph osd pool get $TEST_POOL_GETSET all
 
   for s in pg_num pgp_num size min_size crash_replay_interval crush_ruleset; do
@@ -1268,7 +1268,7 @@ function test_mon_osd_pool_set()
   ceph osd pool get $TEST_POOL_GETSET size | grep "size: $new_size"
   ceph osd pool set $TEST_POOL_GETSET size $old_size
 
-  ceph osd pool create pool_erasure 12 12 erasure
+  ceph osd pool create pool_erasure 1 1 erasure
   set +e
   ceph osd pool set pool_erasure size 4444 2>$TMPFILE
   check_response 'not change the size'