Handle archives is a file instead of dir. 30/15830/6
authorBengt Thuree <bthuree@linuxfoundation.org>
Thu, 13 Jun 2019 00:51:56 +0000 (10:51 +1000)
committerBengt Thuree <bthuree@linuxfoundation.org>
Thu, 13 Jun 2019 07:53:27 +0000 (09:53 +0200)
commit78d119f32b69d7fdfc1de7d702707513ce0de424
tree75c7fdd279a118d848c0d9d7023c9f56b13738e4
parentc15613b8b3929fab9ccb6f09ac76131aef88a4dd
Handle archives is a file instead of dir.

This fix raises an Exception, and exists lftools with (1),
if there is any issues with the Archive directory (missing,
a file instead of directory, or something else)

Change-Id: I3102bd2bd06d14a2e420aada64d76d280221db49
Signed-off-by: Bengt Thuree <bthuree@linuxfoundation.org>
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
lftools/cli/deploy.py
lftools/deploy.py
releasenotes/notes/Fix-copy_archives-error-when-archive-is-file-14e7a4e12775b887.yaml [new file with mode: 0644]
tests/fixtures/deploy/workspace-archivesfile/abc.txt [new file with mode: 0644]
tests/fixtures/deploy/workspace-archivesfile/archives [new file with mode: 0644]
tests/fixtures/deploy/workspace-archivesfile/dependencies.log [new file with mode: 0644]
tests/fixtures/deploy/workspace-noarchives/abc.txt [new file with mode: 0644]
tests/fixtures/deploy/workspace-noarchives/dependencies.log [new file with mode: 0644]
tests/test_deploy.py