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.
Signed-off-by: Lucian Musat <[email protected]> --- meta/lib/oeqa/utils/decorators.py | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/meta/lib/oeqa/utils/decorators.py b/meta/lib/oeqa/utils/decorators.py index 7116208..7a86970 100644 --- a/meta/lib/oeqa/utils/decorators.py +++ b/meta/lib/oeqa/utils/decorators.py @@ -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 -- 2.1.4 -- _______________________________________________ Openembedded-core mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/openembedded-core
