From: Willem Jan Withagen Date: Sun, 20 Nov 2016 19:57:53 +0000 (+0100) Subject: workunits/ceph-helpers.sh: Fixes for FreeBSD X-Git-Tag: v11.1.0~162^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F12085%2Fhead;p=ceph.git workunits/ceph-helpers.sh: Fixes for FreeBSD - stat(1) does not have '%T' Signed-off-by: Willem Jan Withagen --- diff --git a/qa/workunits/ceph-helpers.sh b/qa/workunits/ceph-helpers.sh index f441830a142c..2abf066261ff 100755 --- a/qa/workunits/ceph-helpers.sh +++ b/qa/workunits/ceph-helpers.sh @@ -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