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
This commit is contained in:
parent
95edea9fa7
commit
4a18433851
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue