summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTamar Christina <tamar@zhox.com>2019-02-12 20:51:41 +0000
committerMarge Bot <ben+marge-bot@smart-cactus.org>2019-02-21 20:52:42 -0500
commit48aafc247316a15f2fe412d5dcf07c0bc6e5cbbf (patch)
tree1c471568d7b932d37ece6e8e4d94dc92711e8ab9
parente204431e5a5e2fd16da52b04bda2798f16c51344 (diff)
downloadhaskell-48aafc247316a15f2fe412d5dcf07c0bc6e5cbbf.tar.gz
Testsuite: opt-in to symlinks on Windows
-rw-r--r--testsuite/driver/testutil.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/testsuite/driver/testutil.py b/testsuite/driver/testutil.py
index b73204fe43..09c50b4498 100644
--- a/testsuite/driver/testutil.py
+++ b/testsuite/driver/testutil.py
@@ -64,7 +64,7 @@ def lndir(srcdir, dstdir):
#
# We define the following function to make this magic more
# explicit/discoverable. You are enouraged to use it instead of os.symlink.
-if platform.system() == 'Windows':
+if platform.system() == 'Windows' and os.getenv('FORCE_SYMLINKS') == None:
link_or_copy_file = shutil.copyfile
else:
link_or_copy_file = os.symlink