summaryrefslogtreecommitdiffstats
path: root/meta/lib
diff options
context:
space:
mode:
authorChen Qi <Qi.Chen@windriver.com>2018-12-07 14:43:07 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-12-08 17:17:01 +0000
commitd3a94e5b9b3c107cf54d5639071cc6609c002f67 (patch)
treea1dddbf49d75b08262de4910ffd550bd7afad20f /meta/lib
parent665ff326099c63e18efc158678383774ff9f3450 (diff)
downloadpoky-d3a94e5b9b3c107cf54d5639071cc6609c002f67.tar.gz
oeqa/selftest/context: ensure log directory exists
Ensure log directory exists to avoid the following error. FileNotFoundError: [Errno 2] No such file or directory: '/.../build-selftest/tmp/log/oe-selftest-results-20181207043431.log' (From OE-Core rev: 6c41de48db76087fee596d9440d8f05346ab1094) Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib')
-rw-r--r--meta/lib/oeqa/selftest/context.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/lib/oeqa/selftest/context.py b/meta/lib/oeqa/selftest/context.py
index c521290327..c56e53dcdd 100644
--- a/meta/lib/oeqa/selftest/context.py
+++ b/meta/lib/oeqa/selftest/context.py
@@ -108,6 +108,7 @@ class OESelftestTestContextExecutor(OETestContextExecutor):
108 logdir = os.environ.get("BUILDDIR") 108 logdir = os.environ.get("BUILDDIR")
109 if 'LOG_DIR' in bbvars: 109 if 'LOG_DIR' in bbvars:
110 logdir = bbvars['LOG_DIR'] 110 logdir = bbvars['LOG_DIR']
111 bb.utils.mkdirhier(logdir)
111 args.output_log = logdir + '/%s-results-%s.log' % (self.name, args.test_start_time) 112 args.output_log = logdir + '/%s-results-%s.log' % (self.name, args.test_start_time)
112 113
113 super(OESelftestTestContextExecutor, self)._process_args(logger, args) 114 super(OESelftestTestContextExecutor, self)._process_args(logger, args)