summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChen Qi <Qi.Chen@windriver.com>2018-12-07 14:43:07 +0800
committerArmin Kuster <akuster808@gmail.com>2019-10-03 08:03:52 -0700
commitc54411d0e03fe1cea8b6bb0c80dea029dd264f36 (patch)
treefb7309bbf069318caff8bfa5c5f46f8367735466
parentf5be8c8309a932cde507ba24d042880a922df0b6 (diff)
downloadopenembedded-core-contrib-c54411d0e03fe1cea8b6bb0c80dea029dd264f36.tar.gz
openembedded-core-contrib-c54411d0e03fe1cea8b6bb0c80dea029dd264f36.tar.bz2
openembedded-core-contrib-c54411d0e03fe1cea8b6bb0c80dea029dd264f36.zip
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' Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Armin Kuster <akuster808@gmail.com>
-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):
logdir = os.environ.get("BUILDDIR")
if 'LOG_DIR' in bbvars:
logdir = bbvars['LOG_DIR']
+ bb.utils.mkdirhier(logdir)
args.output_log = logdir + '/%s-results-%s.log' % (self.name, args.test_start_time)
super(OESelftestTestContextExecutor, self)._process_args(logger, args)