Add HAVE_REFLINK flag for tests

This commit is contained in:
Ruben De Smet 2017-07-28 17:37:09 +02:00
parent 7fb3c24c10
commit 2926b49628

View file

@ -25,6 +25,8 @@ import six
import unittest
from contextlib import contextmanager
import reflink
# Mangle the search path to include the beets sources.
sys.path.insert(0, '..')
@ -55,6 +57,7 @@ _item_ident = 0
# OS feature test.
HAVE_SYMLINK = sys.platform != 'win32'
HAVE_HARDLINK = sys.platform != 'win32'
HAVE_REFLINK = reflink.supported_at(tempfile.gettempdir())
def item(lib=None):