mirror of
https://git.yoctoproject.org/poky
synced 2026-04-18 03:32:13 +02:00
oeqa/decorators: Fixed a problem with decorator logs link.
When not doing actual tests with testimage, like for example exporting tests, the link to the log file was still created although the actual log file was not existent. Fixed it by moving the link creation part into the run() method. (From OE-Core rev: 6950a5b1220d1ff81dae15195fe0d8e06977fec8) Signed-off-by: Lucian Musat <george.l.musat@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
790b6c7ead
commit
9549f57c80
@@ -167,14 +167,12 @@ def LogResults(original_class):
|
||||
if passed:
|
||||
local_log.results("Testcase "+str(test_case)+": PASSED")
|
||||
|
||||
original_class.run = run
|
||||
|
||||
# Create symlink to the current log
|
||||
if os.path.islink(linkfile):
|
||||
os.unlink(linkfile)
|
||||
elif os.path.isfile(linkfile):
|
||||
# Create symlink to the current log
|
||||
if os.path.exists(linkfile):
|
||||
os.remove(linkfile)
|
||||
os.symlink(logfile, linkfile)
|
||||
os.symlink(logfile, linkfile)
|
||||
|
||||
original_class.run = run
|
||||
|
||||
return original_class
|
||||
|
||||
|
||||
Reference in New Issue
Block a user