]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
test/osd/osd-test-helpers: mkdir -p for ceph-disk
authorSage Weil <sage@redhat.com>
Tue, 5 Aug 2014 23:48:30 +0000 (16:48 -0700)
committerSage Weil <sage@redhat.com>
Tue, 5 Aug 2014 23:48:30 +0000 (16:48 -0700)
Signed-off-by: Sage Weil <sage@redhat.com>
src/test/osd/osd-test-helpers.sh

index fd05515767359da2d65ddb641889ea0167820d33..37a398eea537a63921ca1c515991c2bd8879cb9f 100644 (file)
@@ -30,6 +30,7 @@ function run_osd() {
 
     touch $dir/ceph.conf
 
+    mkdir -p $osd_data
     ./ceph-disk $ceph_disk_args \
         prepare $osd_data || return 1
 
@@ -43,6 +44,7 @@ function run_osd() {
     ceph_args+=" --pid-file=$dir/osd-\$id.pidfile"
     ceph_args+=" "
     ceph_args+="$@"
+    mkdir -p $osd_data
     CEPH_ARGS="$ceph_args" ./ceph-disk $ceph_disk_args \
         activate \
         --mark-init=none \