]> code.ossystems Code Review - openembedded-core.git/commitdiff
oe-selftest: simplifying log filenames
authorBenjamin Esquivel <benjamin.esquivel@linux.intel.com>
Thu, 21 Jul 2016 12:02:06 +0000 (12:02 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 28 Jul 2016 20:30:16 +0000 (21:30 +0100)
avoiding characters like ':' and making a clearer separation of the
fields that compose the filename. Changing from:

oe-selftest-2016-07-20_16:05:27.log

to:

oe-selftest-20160720-160527.log

Signed-off-by: Benjamin Esquivel <benjamin.esquivel@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
scripts/oe-selftest

index 3188a410cb6a67a2f06cf58e52e7ff8ddb470a66..72bf4dda6a5c8bb2a8a2b58d8924ee735cc7f185 100755 (executable)
@@ -57,7 +57,7 @@ except ImportError:
     from unittest import TextTestResult as TestResult
     from unittest import TextTestRunner as _TestRunner
 
-log_prefix = "oe-selftest-" + t.strftime("%Y-%m-%d_%H:%M:%S")
+log_prefix = "oe-selftest-" + t.strftime("%Y%m%d-%H%M%S")
 
 def logger_create():
     log_file = log_prefix + ".log"