]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
test: Find ceph command as CEPH_TOOL like rados command
authorDavid Zafman <dzafman@redhat.com>
Thu, 7 Apr 2016 23:04:48 +0000 (16:04 -0700)
committerBoris Ranto <branto@redhat.com>
Fri, 6 May 2016 11:44:16 +0000 (13:44 +0200)
Signed-off-by: David Zafman <dzafman@redhat.com>
qa/workunits/rados/test_rados_tool.sh

index 1368d92cc4a6bddf88a69699cf4ad51ee9a5f354..54103a70efb3bb4abaf994332499d18cdaa89e9c 100755 (executable)
@@ -55,6 +55,10 @@ RADOS_TOOL="`readlink -f \"$DNAME/../rados\"`"
 if ! test -f $RADOS_TOOL ; then
     RADOS_TOOL=$(which rados)
 fi
+CEPH_TOOL="`readlink -f \"$DNAME/../ceph\"`"
+if ! test -f $CEPH_TOOL ; then
+    RADOS_TOOL=$(which ceph)
+fi
 KEEP_TEMP_FILES=0
 POOL=trs_pool
 POOL_CP_TARGET=trs_pool.2
@@ -306,11 +310,11 @@ test_xattr() {
 }
 test_rmobj() {
     p=`uuidgen`
-    ceph osd pool create $p 1
-    ceph osd pool set-quota $p max_objects 1
+    $CEPH_TOOL osd pool create $p 1
+    $CEPH_TOOL osd pool set-quota $p max_objects 1
     V1=`mktemp fooattrXXXXXXX`
     rados put $OBJ $V1 -p $p
-    while ! ceph osd dump | grep 'full max_objects'
+    while ! $CEPH_TOOL osd dump | grep 'full max_objects'
     do
        sleep 2
     done