[OE-core] [PATCH] scripts/oe-selftest: Add support for selftest log with timestamp

Burton, Ross ross.burton at intel.com
Tue Dec 22 00:11:04 UTC 2015


On 19 December 2015 at 19:41, Costin Constantin <
costin.c.constantin at intel.com> wrote:

> +    log_file = "oe-selftest-" + t.strftime("%Y-%m-%d_%H:%M:%S") + ".log"
> +    if os.path.exists("oe-selftest.log"): os.remove("oe-selftest.log")
> +    os.symlink(log_file, "oe-selftest.log")
>

Wouldn't it be sensible to also then write directly to the timestamped file
instead of the symlink, just in case? (in the FileHandler call just below).

Ross
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20151222/d3fd2f44/attachment-0002.html>


More information about the Openembedded-core mailing list