]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-disk: cannot run unit tests
authorLoic Dachary <loic@dachary.org>
Thu, 2 Jan 2014 21:42:17 +0000 (22:42 +0100)
committerSage Weil <sage@inktank.com>
Sat, 15 Feb 2014 16:53:27 +0000 (08:53 -0800)
Because ceph-disk relies on hardcoded paths. The corresponding test will
be added back when ceph-disk can run from sources.

Fixes: #7085
Signed-off-by: Loic Dachary <loic@dachary.org>
(cherry picked from commit 2ba6930d62263a39f150ab43bf8cd860b9245188)

src/test/cli/ceph-disk/data-dir.t [deleted file]

diff --git a/src/test/cli/ceph-disk/data-dir.t b/src/test/cli/ceph-disk/data-dir.t
deleted file mode 100644 (file)
index a0bb563..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-  $ uuid=$(uuidgen)
-  $ export CEPH_CONF=$TESTDIR/ceph.conf
-  $ echo "[global]\nfsid = $uuid\nosd_data = $TESTDIR/osd-data\n" > $CEPH_CONF
-  $ osd_data=$(ceph-conf osd_data)
-  $ mkdir $osd_data
-# a failure to create the fsid file implies the magic file is not created
-  $ mkdir $osd_data/fsid
-  $ ceph-disk --verbose prepare $osd_data 2>&1 | grep 'Is a directory'
-  OSError: [Errno 21] Is a directory
-  $ ! [ -f $osd_data/magic ]
-  $ rmdir $osd_data/fsid
-# successfully prepare the OSD
-  $ ceph-disk --verbose prepare $osd_data
-  DEBUG:ceph-disk:Preparing osd data dir .* (re)
-  $ grep $uuid $osd_data/ceph_fsid > /dev/null
-  $ [ -f $osd_data/magic ]
-# will not override an existing OSD
-  $ echo "[global]\nfsid = $(uuidgen)\nosd_data = $TESTDIR/osd-data\n" > $CEPH_CONF
-  $ ceph-disk --verbose prepare $osd_data
-  DEBUG:ceph-disk:Data dir .* already exists (re)
-  $ grep $uuid $osd_data/ceph_fsid > /dev/null
-  $ rm -fr $osd_data $TESTDIR/ceph.conf