From a1ddce36ebf1ce479129def364328486fbcc5c86 Mon Sep 17 00:00:00 2001 From: Dan Mick Date: Wed, 30 Jul 2014 14:50:37 -0700 Subject: [PATCH] qa/workunits/cephtool/test_daemon.sh: verify ceph -c works with daemon Signed-off-by: Dan Mick (cherry picked from commit aa9ae1f270293778aa937e7f7e4bcaee3099b9b2) --- qa/workunits/cephtool/test_daemon.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/qa/workunits/cephtool/test_daemon.sh b/qa/workunits/cephtool/test_daemon.sh index 20ed64fe9dc18..413f7084f90e8 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 -- 2.39.5