]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
tests/ceph-disk: Let teardown clearing data 7762/head
authorErwan Velu <erwan@redhat.com>
Tue, 23 Feb 2016 16:54:21 +0000 (17:54 +0100)
committerErwan Velu <erwan@redhat.com>
Wed, 24 Feb 2016 08:56:01 +0000 (09:56 +0100)
commit48af4bec8b17ee57ba3896d9d4dec33edff2f479
tree449406750dbc1b627da4ccdc60a731a45c7f31db
parent57f31e9536076da333062ee161021d78e3f542fa
tests/ceph-disk: Let teardown clearing data

When running the ceph-disk check suite, 'test_mark_init' & 'test_activate_dir' had a
permission denied of the freshly created stuff like in :

tests/ceph-disk.sh:237: test_mark_init:  /bin/rm -fr /ceph/src/ceph-disk/test-ceph-disk/dir
/bin/rm: cannot remove « /ceph/src/ceph-disk/test-ceph-disk/dir/snap_1 »: Permission denied
/bin/rm: cannot remove « /ceph/src/ceph-disk/test-ceph-disk/dir/current »: Permission denied
/bin/rm: cannot remove « /ceph/src/ceph-disk/test-ceph-disk/dir/snap_2 »: Permission denied

Those two tests are starting a mon with run_mon.
Trying to delete the files while the daemon are still alive is impossible.
This patch removes the explicit 'rm' and let the teardown doing the cleaning
stuff by stopping daemons & cleaning content.

By using this patch, make check is now sucessful on ceph-disk.

Signed-off-by: Erwan Velu <erwan@redhat.com>
src/ceph-disk/tests/ceph-disk.sh