]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: larger timeout for mon mkfs.sh test 1082/head
authorLoic Dachary <loic@dachary.org>
Thu, 16 Jan 2014 13:29:46 +0000 (14:29 +0100)
committerLoic Dachary <loic@dachary.org>
Thu, 16 Jan 2014 13:32:15 +0000 (14:32 +0100)
Otherwise slow machines may timeout just because they are slow and not
because the process is blocked by an actual problem.

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

index a3f139728c1ae751d2dea2995248bc296144b533..33e3fbafefb036a3f9bf26b79d4d0ce8bd106dd3 100755 (executable)
@@ -24,6 +24,7 @@ MON_ID=a
 MON_DIR=$DIR/$MON_ID
 PORT=7451
 MONA=127.0.0.1:$PORT
+TIMEOUT=360
 
 function setup() {
     teardown
@@ -84,7 +85,7 @@ function auth_none() {
 
     mon_run --auth-supported=none
     
-    timeout 10 ./ceph --mon-host $MONA mon stat || return 1
+    timeout $TIMEOUT ./ceph --mon-host $MONA mon stat || return 1
 }
 
 function auth_cephx_keyring() {
@@ -100,7 +101,7 @@ EOF
 
     mon_run
 
-    timeout 10 ./ceph \
+    timeout $TIMEOUT ./ceph \
         --name mon. \
         --keyring $MON_DIR/keyring \
         --mon-host $MONA mon stat || return 1
@@ -122,7 +123,7 @@ function auth_cephx_key() {
 
     mon_run
 
-    timeout 10 ./ceph \
+    timeout $TIMEOUT ./ceph \
         --name mon. \
         --keyring $MON_DIR/keyring \
         --mon-host $MONA mon stat || return 1