From: Leonardo Sandoval
Some tests defines images that poky-tiny cannot build so skip them. Also,
bitbake world fails if distro does not contain opengl, so skip also those.
Signed-off-by: Leonardo Sandoval
---
meta/lib/oeqa/selftest/sstatetests.py | 57 ++-
1 file changed, 49 insertions(+), 8 deletions(-)
diff --git a/meta/lib/oeqa/selftest/sstatetests.py
b/meta/lib/oeqa/selftest/sstatetests.py
index 6642539..8ea3932 100644
--- a/meta/lib/oeqa/selftest/sstatetests.py
+++ b/meta/lib/oeqa/selftest/sstatetests.py
@@ -42,20 +42,36 @@ class SStateTests(SStateBase):
@testcase(975)
def test_sstate_creation_distro_specific_pass(self):
targetarch = get_bb_var('TUNE_ARCH')
-self.run_test_sstate_creation(['binutils-cross-'+ targetarch,
'binutils-native'], distro_specific=True, distro_nonspecific=False,
temp_sstate_location=True)
+# Execute the test in all distros expect poky-tiny where glibc-initial
is not provided
+targets = ['binutils-cross-'+ targetarch, 'binutils-native']
+if self.distro == 'poky-tiny':
+self.skipTest('Distro %s does not support building the following
targets %s' % (self.distro, ','.join(targets)))
+self.run_test_sstate_creation(targets, distro_specific=True,
distro_nonspecific=False, temp_sstate_location=True)
@testcase(1374)
def test_sstate_creation_distro_specific_fail(self):
targetarch = get_bb_var('TUNE_ARCH')
-self.run_test_sstate_creation(['binutils-cross-'+ targetarch,
'binutils-native'], distro_specific=False, distro_nonspecific=True,
temp_sstate_location=True, should_pass=False)
+# Execute the test in all distros expect poky-tiny where glibc-initial
is not provided
+targets = ['binutils-cross-'+ targetarch, 'binutils-native']
+if self.distro == 'poky-tiny':
+self.skipTest('Distro %s does not support building the following
targets %s' % (self.distro, ','.join(targets)))
+self.run_test_sstate_creation(targets, distro_specific=False,
distro_nonspecific=True, temp_sstate_location=True, should_pass=False)
@testcase(976)
def test_sstate_creation_distro_nonspecific_pass(self):
-self.run_test_sstate_creation(['glibc-initial'],
distro_specific=False, distro_nonspecific=True, temp_sstate_location=True)
+# Execute the test in all distros expect poky-tiny where glibc-initial
is not provided
+targets = ['glibc-initial']
+if self.distro == 'poky-tiny':
+self.skipTest('Distro %s does not support building the following
targets %s' % (self.distro, ','.join(targets)))
+self.run_test_sstate_creation(targets, distro_specific=False,
distro_nonspecific=True, temp_sstate_location=True)
@testcase(1375)
def test_sstate_creation_distro_nonspecific_fail(self):
-self.run_test_sstate_creation(['glibc-initial'], distro_specific=True,
distro_nonspecific=False, temp_sstate_location=True, should_pass=False)
+# Execute the test in all distros expect poky-tiny where glibc-initial
is not provided
+targets = ['glibc-initial']
+if self.distro == 'poky-tiny':
+self.skipTest('Distro %s does not support building the following
targets %s' % (self.distro, ','.join(targets)))
+self.run_test_sstate_creation(targets, distro_specific=True,
distro_nonspecific=False, temp_sstate_location=True, should_pass=False)
# Test the sstate files deletion part of the do_cleansstate task
@@ -78,17 +94,28 @@ class SStateTests(SStateBase):
@testcase(977)
def test_cleansstate_task_distro_specific_nonspecific(self):
targetarch = get_bb_var('TUNE_ARCH')
-self.run_test_cleansstate_task(['binutils-cross-' + targetarch,
'binutils-native', 'glibc-initial'], distro_specific=True,
distro_nonspecific=True, temp_sstate_location=True)
+# Execute the test in all distros expect poky-tiny where glibc-initial
is not provided
+targets = ['binutils-cross-' + targetarch, 'binutils-native',
'glibc-initial']
+if self.distro == 'poky-tiny':
+self.skipTest('Distro %s does not support building the following
targets %s' % (self.distro, ','.join(targets)))
+self.run_test_cleansstate_task(targets, distro_specific=True,
distro_nonspecific=True, temp_sstate_location=True)
@testcase(1376)
def test_cleansstate_task_distro_nonspecific(self):
-self.run_test_cleansstate_task(['glibc-initial'],
distro_specific=False, distro_nonspecific=True, temp_sstate_location=True)
+# Execute the test in all distros expect poky-tiny where glibc-initial
is not provided
+targets = ['glibc-initial']
+if self.distro == 'poky-tiny':
+self.skipTest('Distro %s does not support building the following
targets %s' % (self.distro, ','.join(targets)))
+