]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
oe-selftest: fix behaviour if oe-selftest.log is a dangling symlink
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Wed, 23 Nov 2016 02:00:00 +0000 (15:00 +1300)
committerPaul Eggleton <paul.eggleton@linux.intel.com>
Thu, 22 Dec 2016 03:12:51 +0000 (16:12 +1300)
commit181f25ab570147931954417e03c4aaaf0d93ed7b
tree1fe34c8a1e2f12079ed3723a452d0146cf406ce6
parentf34844865a81dce83014721eff986f9fb27d6afd
oe-selftest: fix behaviour if oe-selftest.log is a dangling symlink

If you delete the log file that the oe-selftest.log symlink points to
but not the symlink itself, because we were using os.path.exists() here
the code assumed that the symlink didn't exist when in fact it still
did. Use os.path.lexists() instead.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
scripts/oe-selftest