From: Loic Dachary Date: Sun, 2 Feb 2014 09:31:48 +0000 (+0100) Subject: mon: osd-pool-create shows logs on error X-Git-Tag: v0.78~226^2~7 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=9cb2215e9a0de04e36969759fb469543ece9a475;p=ceph.git mon: osd-pool-create shows logs on error extracting the logs would otherwise require a modification of the test file to not clobber the directory containing the logs when it exits Reviewed-By: Christophe Courtaut Signed-off-by: Loic Dachary --- diff --git a/src/test/mon/osd-pool-create.sh b/src/test/mon/osd-pool-create.sh index 2e0fa6f68d26..cabe6b083040 100755 --- a/src/test/mon/osd-pool-create.sh +++ b/src/test/mon/osd-pool-create.sh @@ -19,7 +19,7 @@ PS4='$LINENO: ' DIR=osd-pool-create rm -fr $DIR -trap "set +x ; kill_mon || true ; rm -fr $DIR" EXIT +trap "test \$? = 0 || cat $DIR/log ; set +x ; kill_mon || true && rm -fr $DIR" EXIT mkdir $DIR export CEPH_ARGS="--conf /dev/null --auth-supported=none --mon-host=127.0.0.1"