summaryrefslogtreecommitdiff
path: root/tests/cachekey
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cachekey')
-rw-r--r--tests/cachekey/cachekey.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/cachekey/cachekey.py b/tests/cachekey/cachekey.py
index d59a15529..36562fbf3 100644
--- a/tests/cachekey/cachekey.py
+++ b/tests/cachekey/cachekey.py
@@ -150,6 +150,16 @@ DATA_DIR = os.path.join(
@pytest.mark.datafiles(DATA_DIR)
def test_cache_key(datafiles, cli):
project = os.path.join(datafiles.dirname, datafiles.basename)
+
+ # Workaround bug in recent versions of setuptools: newer
+ # versions of setuptools fail to preserve symbolic links
+ # when creating a source distribution, causing this test
+ # to fail from a dist tarball.
+ goodbye_link = os.path.join(project, 'files', 'local',
+ 'usr', 'bin', 'goodbye')
+ os.unlink(goodbye_link)
+ os.symlink('hello', goodbye_link)
+
result = cli.run(project=project, silent=True, args=[
'show',
'--format', '%{name}::%{full-key}',