From 4a1843385199f6f279f1ce2ffc1aae1d3c6dfe71 Mon Sep 17 00:00:00 2001 From: arehbein Date: Sun, 15 Jan 2023 21:20:48 +0100 Subject: [PATCH] WIP: scripts/osmotestconfig.py: Fix tests failing due to attempted copy on socket files Add files matching socket file pattern to ignore list for recursive copy operations. This shouldn't break anything, since no socket files are removed from the source directory of the copy command, nor expected in the destination directory. Related: OS#5858 Change-Id: I3a3cc7ed135b60b97eb901cfc20fdcb924e4f664 --- scripts/osmotestconfig.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/osmotestconfig.py b/scripts/osmotestconfig.py index 8b3bb84..5302758 100755 --- a/scripts/osmotestconfig.py +++ b/scripts/osmotestconfig.py @@ -77,7 +77,7 @@ def test_config_atest(app_desc, config, run_test, verbose=True): def copy_config(dirname, config): shutil.rmtree(dirname, True) - ign = shutil.ignore_patterns('*.cfg') + ign = shutil.ignore_patterns('*.cfg', '*tmp_dummy_sock') shutil.copytree(os.path.dirname(config), dirname, ignore=ign) os.chmod(dirname, stat.S_IRWXU)