1
0
mirror of https://github.com/ceph/ceph synced 2024-12-23 03:44:23 +00:00

workunits/ceph-helpers.sh: Fixes for FreeBSD

- stat(1) does not have '%T'

Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
This commit is contained in:
Willem Jan Withagen 2016-11-20 20:57:53 +01:00
parent eb8b4c8897
commit e4629b3397

View File

@ -117,7 +117,8 @@ function test_setup() {
function teardown() {
local dir=$1
kill_daemons $dir KILL
if [ $(stat -f -c '%T' .) == "btrfs" ]; then
if [ `uname` != FreeBSD ] \
&& [ $(stat -f -c '%T' .) == "btrfs" ]; then
__teardown_btrfs $dir
fi
rm -fr $dir