From e4629b33972977a315736afdef00d7a52228932f Mon Sep 17 00:00:00 2001 From: Willem Jan Withagen Date: Sun, 20 Nov 2016 20:57:53 +0100 Subject: [PATCH] workunits/ceph-helpers.sh: Fixes for FreeBSD - stat(1) does not have '%T' Signed-off-by: Willem Jan Withagen --- qa/workunits/ceph-helpers.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.47.3