From: Daan De Meyer Date: Tue, 28 May 2024 11:08:23 +0000 (+0200) Subject: test-network: Add dirs_exist_ok=True to cp_r() X-Git-Tag: v256-rc4~81^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6b572e88a353f1d9edd4a87ea24c201ff57faa04;p=thirdparty%2Fsystemd.git test-network: Add dirs_exist_ok=True to cp_r() Let's not fail if directories already exist in cp_r(). --- 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)