summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/utils
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2016-07-22 15:03:30 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-07-26 08:56:25 +0100
commit31cef0d518c16b97c5013b6c073dd2987086ff6a (patch)
tree5de7b2f0065fe5a686c64798a0b128622a608fae /meta/lib/oeqa/utils
parentebc80fa30a98484b7fd1d568bd0f3d701a6f68d5 (diff)
downloadpoky-31cef0d518c16b97c5013b6c073dd2987086ff6a.tar.gz
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. (From OE-Core rev: ec24b6de2b8686e1f779fef3a963e66f70eeba74) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/utils')
-rw-r--r--meta/lib/oeqa/utils/decorators.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oeqa/utils/decorators.py b/meta/lib/oeqa/utils/decorators.py
index 0b23565485..615fd956b5 100644
--- a/meta/lib/oeqa/utils/decorators.py
+++ b/meta/lib/oeqa/utils/decorators.py
@@ -190,7 +190,7 @@ def LogResults(original_class):
190 local_log.results("Testcase "+str(test_case)+": PASSED") 190 local_log.results("Testcase "+str(test_case)+": PASSED")
191 191
192 # Create symlink to the current log 192 # Create symlink to the current log
193 if os.path.exists(linkfile): 193 if os.path.lexists(linkfile):
194 os.remove(linkfile) 194 os.remove(linkfile)
195 os.symlink(logfile, linkfile) 195 os.symlink(logfile, linkfile)
196 196