From 6b572e88a353f1d9edd4a87ea24c201ff57faa04 Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Tue, 28 May 2024 13:08:23 +0200 Subject: [PATCH] test-network: Add dirs_exist_ok=True to cp_r() Let's not fail if directories already exist in cp_r(). --- test/test-network/systemd-networkd-tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test-network/systemd-networkd-tests.py b/test/test-network/systemd-networkd-tests.py index 07d5f95b346..3636baea6ee 100755 --- a/test/test-network/systemd-networkd-tests.py +++ b/test/test-network/systemd-networkd-tests.py @@ -106,7 +106,7 @@ def cp(src, dst): shutil.copy(src, dst) def cp_r(src, dst): - shutil.copytree(src, dst, copy_function=shutil.copy) + shutil.copytree(src, dst, copy_function=shutil.copy, dirs_exist_ok=True) def mkdir_p(path): os.makedirs(path, exist_ok=True) -- 2.47.3