]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/workunits/cephtool/test_daemon.sh: verify ceph -c works with daemon 2164/head
authorDan Mick <dan.mick@inktank.com>
Wed, 30 Jul 2014 21:50:37 +0000 (14:50 -0700)
committerDan Mick <dan.mick@inktank.com>
Wed, 30 Jul 2014 21:52:48 +0000 (14:52 -0700)
Signed-off-by: Dan Mick <dan.mick@inktank.com>
qa/workunits/cephtool/test_daemon.sh

index 20ed64fe9dc185a937458431e4eb1b40e1a75b15..413f7084f90e87298aed5c54017fbd3f32996133 100755 (executable)
@@ -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