]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
workunits/ceph-helpers.sh: Fixes for FreeBSD 12085/head
authorWillem Jan Withagen <wjw@digiware.nl>
Sun, 20 Nov 2016 19:57:53 +0000 (20:57 +0100)
committerWillem Jan Withagen <wjw@digiware.nl>
Thu, 24 Nov 2016 00:57:05 +0000 (01:57 +0100)
 - stat(1) does not have '%T'

Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
qa/workunits/ceph-helpers.sh

index f441830a142c8f3447edf72978674bb020c8ecda..2abf066261ffead078714323763563efa242f982 100755 (executable)
@@ -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