Skip to content

Commit

Permalink
workunits/ceph-helpers.sh: Fixes for FreeBSD
Browse files Browse the repository at this point in the history
 - stat(1) does not have '%T'

Signed-off-by: Willem Jan Withagen <[email protected]>
  • Loading branch information
wjwithagen committed Nov 24, 2016
1 parent eb8b4c8 commit e4629b3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion qa/workunits/ceph-helpers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e4629b3

Please sign in to comment.