[oe-commits] [openembedded-core] 03/72: lib/oeqa/decorators: handle broken links when creating new symlink
git at git.openembedded.org
git at git.openembedded.org
Mon Jul 25 22:52:31 UTC 2016
rpurdie pushed a commit to branch master-next
in repository openembedded-core.
commit ec24b6de2b8686e1f779fef3a963e66f70eeba74
Author: Ross Burton <ross.burton at intel.com>
AuthorDate: Fri Jul 22 15:03:30 2016 +0100
lib/oeqa/decorators: handle broken links when creating new symlink
When checking if a link exists before creating it, use os.path.lexists() as
otherwise os.path.exists() on a broken link will return False.
Signed-off-by: Ross Burton <ross.burton at intel.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
meta/lib/oeqa/utils/decorators.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta/lib/oeqa/utils/decorators.py b/meta/lib/oeqa/utils/decorators.py
index 0b23565..615fd95 100644
--- a/meta/lib/oeqa/utils/decorators.py
+++ b/meta/lib/oeqa/utils/decorators.py
@@ -190,7 +190,7 @@ def LogResults(original_class):
local_log.results("Testcase "+str(test_case)+": PASSED")
# Create symlink to the current log
- if os.path.exists(linkfile):
+ if os.path.lexists(linkfile):
os.remove(linkfile)
os.symlink(logfile, linkfile)
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list