]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test/vstart_wrapper.sh: display_log on test failure
authorKefu Chai <kchai@redhat.com>
Mon, 12 Jun 2017 08:15:24 +0000 (16:15 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 12 Jun 2017 08:15:49 +0000 (16:15 +0800)
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/test/vstart_wrapper.sh

index bec5e73e8966e2f9e3d1cde410758d41de49c576..bc3cd9b56019abccc1220eeaf448e2de7dfd0fb8 100755 (executable)
@@ -62,7 +62,13 @@ function main()
 {
     teardown $CEPH_DIR
     vstart_setup || return 1
-    CEPH_CONF=$CEPH_DIR/ceph.conf "$@" || return 1
+    if CEPH_CONF=$CEPH_DIR/ceph.conf "$@"; then
+        code=0
+    else
+        code=1
+        display_logs $CEPH_OUT_DIR
+    fi
+    return $code
 }
 
 main "$@"