[OE-core] [PATCH] oeqa/runexported: Fix a problem with ssh_target_log existing in folder.

Burton, Ross ross.burton at intel.com
Thu Sep 24 16:45:56 UTC 2015


On 24 September 2015 at 12:00, Lucian Musat <george.l.musat at intel.com>
wrote:

>          if os.path.islink(sshloglink):
>              os.unlink(sshloglink)
> +        elif os.path.isfile(sshloglink):
> +                os.remove(sshloglink)
>

So if sshloglink is a link or a file, delete it.   How is this different
from just deleting the file if it exists?

Ross
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20150924/8f12de09/attachment-0002.html>


More information about the Openembedded-core mailing list