Add HAVE_REFLINK flag for tests
@@ -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):
