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 <christophe.courtaut@gmail.com>
Signed-off-by: Loic Dachary <loic@dachary.org>
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"