]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/workunits/objectstore/test_fuse.sh: allow failure
authorDan Mick <dan.mick@redhat.com>
Thu, 16 Feb 2017 04:08:31 +0000 (20:08 -0800)
committerKefu Chai <kchai@redhat.com>
Fri, 17 Feb 2017 03:18:20 +0000 (11:18 +0800)
This script currently has a syntax error, but still exits with
success, which is hiding that failure.  Expose it by allowing
the 'sudo' exit code to be the script's exit code.

Signed-off-by: Dan Mick <dan.mick@redhat.com>
qa/workunits/objectstore/test_fuse.sh

index 71d0595e6ba9b56e08345fa74f7370916bdaf12c..da42a4cb55907fe2a2fd2b4876489728a0b26aeb 100755 (executable)
@@ -2,7 +2,7 @@
 
 if ! id -u | grep -q '^0$'; then
     echo "not root, re-running self via sudo"
-    sudo PATH=$PATH TYPE=$TYPE $0 || echo FAIL
+    sudo PATH=$PATH TYPE=$TYPE $0
     exit 0
 fi