Commit 5d639235 authored by Mike Rapoport's avatar Mike Rapoport Committed by Pavel Emelyanov

test/zdtm.py: ignore UNIX sockets during report creation

When files are added to the report shutil.copytree is unhappy with
lazy-pages.socket. Tell shutil.copytree that it should ignore *.socket.
Signed-off-by: 's avatarMike Rapoport <rppt@linux.vnet.ibm.com>
Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
parent 1db93b6e
......@@ -83,8 +83,9 @@ def add_to_report(path, tgt_name):
tgt_path = os.path.join(report_dir, tgt_name + ".%d" % att)
att += 1
ignore = shutil.ignore_patterns('*.socket')
if os.path.isdir(path):
shutil.copytree(path, tgt_path)
shutil.copytree(path, tgt_path, ignore = ignore)
else:
if not os.path.exists(os.path.dirname(tgt_path)):
os.mkdir(os.path.dirname(tgt_path))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment