diff options
Diffstat (limited to 'scripts/oe-selftest')
-rwxr-xr-x | scripts/oe-selftest | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/oe-selftest b/scripts/oe-selftest index f989e87010..08a5af3952 100755 --- a/scripts/oe-selftest +++ b/scripts/oe-selftest | |||
@@ -31,6 +31,7 @@ import unittest | |||
31 | import logging | 31 | import logging |
32 | import argparse | 32 | import argparse |
33 | import subprocess | 33 | import subprocess |
34 | import time as t | ||
34 | 35 | ||
35 | sys.path.insert(0, os.path.dirname(os.path.realpath(__file__)) + '/lib') | 36 | sys.path.insert(0, os.path.dirname(os.path.realpath(__file__)) + '/lib') |
36 | import scriptpath | 37 | import scriptpath |
@@ -44,10 +45,14 @@ from oeqa.utils.commands import runCmd, get_bb_var, get_test_layer | |||
44 | from oeqa.selftest.base import oeSelfTest | 45 | from oeqa.selftest.base import oeSelfTest |
45 | 46 | ||
46 | def logger_create(): | 47 | def logger_create(): |
48 | log_file = "oe-selftest-" + t.strftime("%Y-%m-%d_%H:%M:%S") + ".log" | ||
49 | if os.path.exists("oe-selftest.log"): os.remove("oe-selftest.log") | ||
50 | os.symlink(log_file, "oe-selftest.log") | ||
51 | |||
47 | log = logging.getLogger("selftest") | 52 | log = logging.getLogger("selftest") |
48 | log.setLevel(logging.DEBUG) | 53 | log.setLevel(logging.DEBUG) |
49 | 54 | ||
50 | fh = logging.FileHandler(filename='oe-selftest.log', mode='w') | 55 | fh = logging.FileHandler(filename=log_file, mode='w') |
51 | fh.setLevel(logging.DEBUG) | 56 | fh.setLevel(logging.DEBUG) |
52 | 57 | ||
53 | ch = logging.StreamHandler(sys.stdout) | 58 | ch = logging.StreamHandler(sys.stdout) |