aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/lib/oeqa/selftest/case.py4
-rw-r--r--meta/lib/oeqa/selftest/cases/sstate.py3
2 files changed, 6 insertions, 1 deletions
diff --git a/meta/lib/oeqa/selftest/case.py b/meta/lib/oeqa/selftest/case.py
index fcaf63a16f6..e737d70da5b 100644
--- a/meta/lib/oeqa/selftest/case.py
+++ b/meta/lib/oeqa/selftest/case.py
@@ -270,10 +270,12 @@ to ensure accurate results.")
"""Wrapper that queries local test data instead of calling bitbake on behalf of commands.get_bb_vars"""
values = dict()
# only use local test data when there is no target and unit test has not added any conf value into testinc file
- if not target and not os.path.exists(cls.testinc_path):
+ if (not target) and (not os.path.exists(cls.testinc_path)):
for var in variables:
try:
+ cls.logger.info('target %s os.path.exists %s cls.td[%s]' % ((not target), (not os.path.exists(cls.testinc_path)), var))
values[var] = cls.td[var]
+ cls.logger.info('cls.td[%s] = %s' % (var, values[var]))
except KeyError:
break
else:
diff --git a/meta/lib/oeqa/selftest/cases/sstate.py b/meta/lib/oeqa/selftest/cases/sstate.py
index cf5002801b1..0310b7f1730 100644
--- a/meta/lib/oeqa/selftest/cases/sstate.py
+++ b/meta/lib/oeqa/selftest/cases/sstate.py
@@ -35,8 +35,10 @@ class SStateBase(OESelftestTestCase):
config_temp_sstate = "SSTATE_DIR = \"%s\"" % temp_sstate_path
self.append_config(config_temp_sstate)
self.track_for_cleanup(temp_sstate_path)
+ self.logger.info('before self.sstate_path %s' % self.sstate_path)
bb_vars = self.get_bb_vars(['SSTATE_DIR', 'NATIVELSBSTRING'])
self.sstate_path = bb_vars['SSTATE_DIR']
+ self.logger.info('after self.sstate_path %s' % self.sstate_path)
self.hostdistro = bb_vars['NATIVELSBSTRING']
self.distro_specific_sstate = os.path.join(self.sstate_path, self.hostdistro)
@@ -44,6 +46,7 @@ class SStateBase(OESelftestTestCase):
config_set_sstate_if_not_set = 'SSTATE_MIRRORS ?= ""'
self.append_config(config_set_sstate_if_not_set)
for local_mirror in add_local_mirrors:
+ self.logger.info('local mirror %s self.sstate_path %s' % (local_mirror, self.sstate_path))
self.assertFalse(os.path.join(local_mirror) == os.path.join(self.sstate_path), msg='Cannot add the current sstate path as a sstate mirror')
config_sstate_mirror = "SSTATE_MIRRORS += \"file://.* file:///%s/PATH\"" % local_mirror
self.append_config(config_sstate_mirror)