]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: minor improvement to test-helpers.sh
authorLoic Dachary <loic@dachary.org>
Sun, 9 Feb 2014 17:26:57 +0000 (18:26 +0100)
committerLoic Dachary <loic@dachary.org>
Thu, 13 Feb 2014 11:14:05 +0000 (12:14 +0100)
* kill -9 daemons to better cope with stuck daemons
* reduce paxos propose interval to speedup tests
* look for erasure code plugins from the sources directory

Signed-off-by: Loic Dachary <loic@dachary.org>
src/test/mon/mon-test-helpers.sh

index 63360c92807d6e9ee6c17c177d234a7bc0056e2f..0196bd9dd08901b9b633244ac6a6a01a15330233 100644 (file)
@@ -41,8 +41,12 @@ function run_mon() {
 
     ./ceph-mon \
         --id $id \
+        --paxos-propose-interval=0.1 \
+        --osd-pool-default-erasure-code-directory=.libs \
         --debug-mon 20 \
         --debug-ms 20 \
+        --debug-paxos 20 \
+        --mon-advanced-debug-mode \
         --chdir= \
         --mon-data=$dir \
         --log-file=$dir/log \
@@ -56,7 +60,7 @@ function kill_daemons() {
     local dir=$1
     for pidfile in $(find $dir | grep pidfile) ; do
         for try in 0 1 1 1 2 3 ; do
-            kill $(cat $pidfile 2> /dev/null) 2> /dev/null || break
+            kill -9 $(cat $pidfile 2> /dev/null) 2> /dev/null || break
             sleep $try
         done
     done
@@ -69,9 +73,8 @@ function main() {
     export CEPH_CONF=/dev/null
     unset CEPH_ARGS
 
-    setup $dir || return 1
     set -x
+    setup $dir || return 1
     run $dir || return 1
-    set +x
     teardown $dir || return 1
 }