lftools deploy archives handle dup patterns/file 49/15849/10
authorBengt Thuree <bthuree@linuxfoundation.org>
Thu, 13 Jun 2019 00:51:35 +0000 (10:51 +1000)
committerBengt Thuree <bthuree@linuxfoundation.org>
Thu, 13 Jun 2019 09:12:33 +0000 (11:12 +0200)
commitbf148382ba9b04d592311ea2cb99f137a557f79f
tree2ab6024d9ba6376950685c73efd268ebfae758dc
parent78d119f32b69d7fdfc1de7d702707513ce0de424
lftools deploy archives handle dup patterns/file

If the pattern is not properly done, the resulting file list might
contain duplicated files.

This fix will remove the duplicated patterns, as well as
duplicated matched files.

This fix should fix the OSError exception in mkdir

Change-Id: Ib7ac21ecdec2fdefe84b710a90666b70d966be12
Signed-off-by: Bengt Thuree <bthuree@linuxfoundation.org>
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
13 files changed:
lftools/deploy.py
releasenotes/notes/copy_archive_with_pattern_causes_OSError-c194d1960d322c51.yaml [new file with mode: 0644]
tests/fixtures/deploy/workspace-patternfile/abc.log [new file with mode: 0644]
tests/fixtures/deploy/workspace-patternfile/archives/test.log [new file with mode: 0644]
tests/fixtures/deploy/workspace-patternfile/dir1/abc.log [new file with mode: 0644]
tests/fixtures/deploy/workspace-patternfile/dir1/abc.txt [new file with mode: 0644]
tests/fixtures/deploy/workspace-patternfile/dir1/hs_err_12.log [new file with mode: 0644]
tests/fixtures/deploy/workspace-patternfile/dir1/hs_err_13.log [new file with mode: 0644]
tests/fixtures/deploy/workspace-patternfile/dir2/abc.log [new file with mode: 0644]
tests/fixtures/deploy/workspace-patternfile/dir2/abc2.txt [new file with mode: 0644]
tests/fixtures/deploy/workspace-patternfile/dir2/hs_err_12.log [new file with mode: 0644]
tests/fixtures/deploy/workspace-patternfile/dir2/hs_err_13.log [new file with mode: 0644]
tests/test_deploy.py