From: Dan Mick Date: Wed, 30 Jul 2014 21:50:37 +0000 (-0700) Subject: qa/workunits/cephtool/test_daemon.sh: verify ceph -c works with daemon X-Git-Tag: v0.85~124^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F2164%2Fhead;p=ceph.git qa/workunits/cephtool/test_daemon.sh: verify ceph -c works with daemon Signed-off-by: Dan Mick --- diff --git a/qa/workunits/cephtool/test_daemon.sh b/qa/workunits/cephtool/test_daemon.sh index 20ed64fe9dc1..413f7084f90e 100755 --- a/qa/workunits/cephtool/test_daemon.sh +++ b/qa/workunits/cephtool/test_daemon.sh @@ -30,4 +30,14 @@ new_ms=$(${CEPH} daemon mon.a config get debug_ms | \ # unregistered/non-existent command expect_false ${CEPH} daemon mon.a bogus_command_blah foo +set +e +OUTPUT=$(${CEPH} -c /not/a/ceph.conf daemon mon.a help 2>&1) +# look for EINVAL +if [ $? != 22 ] ; then exit 1; fi +if ! echo "$OUTPUT" | grep -q '.*open.*/not/a/ceph.conf'; then + echo "didn't find expected error in bad conf search" + exit 1 +fi +set -e + echo OK