From 48aafc247316a15f2fe412d5dcf07c0bc6e5cbbf Mon Sep 17 00:00:00 2001 From: Tamar Christina Date: Tue, 12 Feb 2019 20:51:41 +0000 Subject: Testsuite: opt-in to symlinks on Windows --- testsuite/driver/testutil.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.1