summaryrefslogtreecommitdiff
path: root/testsuite/driver/testutil.py
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/driver/testutil.py')
-rw-r--r--testsuite/driver/testutil.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/testsuite/driver/testutil.py b/testsuite/driver/testutil.py
index 973d4bcae5..9e0cdc5d49 100644
--- a/testsuite/driver/testutil.py
+++ b/testsuite/driver/testutil.py
@@ -115,10 +115,12 @@ def symlinks_work() -> bool:
if not symlinks_work():
def link_or_copy_file(src: Path, dst: Path, force_copy=False):
shutil.copyfile(str(src), str(dst))
+ shutil.copymode(str(src), str(dst))
else:
def link_or_copy_file(src: Path, dst: Path, force_copy=False):
if force_copy:
shutil.copyfile(str(src), str(dst))
+ shutil.copymode(str(src), str(dst))
else:
os.symlink(str(src), str(dst))