summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
Diffstat (limited to 'meta')
-rw-r--r--meta/lib/oeqa/runtime/cases/ptest.py15
-rw-r--r--meta/recipes-sato/images/core-image-sato-sdk-ptest.bb3
2 files changed, 17 insertions, 1 deletions
diff --git a/meta/lib/oeqa/runtime/cases/ptest.py b/meta/lib/oeqa/runtime/cases/ptest.py
index eb284df439..5626f707b9 100644
--- a/meta/lib/oeqa/runtime/cases/ptest.py
+++ b/meta/lib/oeqa/runtime/cases/ptest.py
@@ -18,7 +18,20 @@ class PtestRunnerTest(OERuntimeTestCase):
18 @OETestDepends(['ssh.SSHTest.test_ssh']) 18 @OETestDepends(['ssh.SSHTest.test_ssh'])
19 @OEHasPackage(['ptest-runner']) 19 @OEHasPackage(['ptest-runner'])
20 @unittest.expectedFailure 20 @unittest.expectedFailure
21 def test_ptestrunner(self): 21 def test_ptestrunner_expectfail(self):
22 if not self.td.get('PTEST_EXPECT_FAILURE'):
23 self.skipTest('Cannot run ptests with @expectedFailure as ptests are required to pass')
24 self.do_ptestrunner()
25
26 @skipIfNotFeature('ptest', 'Test requires ptest to be in DISTRO_FEATURES')
27 @OETestDepends(['ssh.SSHTest.test_ssh'])
28 @OEHasPackage(['ptest-runner'])
29 def test_ptestrunner_expectsuccess(self):
30 if self.td.get('PTEST_EXPECT_FAILURE'):
31 self.skipTest('Cannot run ptests without @expectedFailure as ptests are expected to fail')
32 self.do_ptestrunner()
33
34 def do_ptestrunner(self):
22 status, output = self.target.run('which ptest-runner', 0) 35 status, output = self.target.run('which ptest-runner', 0)
23 if status != 0: 36 if status != 0:
24 self.skipTest("No -ptest packages are installed in the image") 37 self.skipTest("No -ptest packages are installed in the image")
diff --git a/meta/recipes-sato/images/core-image-sato-sdk-ptest.bb b/meta/recipes-sato/images/core-image-sato-sdk-ptest.bb
index 58c257c49f..bf749acd79 100644
--- a/meta/recipes-sato/images/core-image-sato-sdk-ptest.bb
+++ b/meta/recipes-sato/images/core-image-sato-sdk-ptest.bb
@@ -18,3 +18,6 @@ IMAGE_ROOTFS_EXTRA_SPACE = "1124288"
18# ptests need more memory than standard to avoid the OOM killer 18# ptests need more memory than standard to avoid the OOM killer
19# also lttng-tools needs /tmp that has at least 1G 19# also lttng-tools needs /tmp that has at least 1G
20QB_MEM = "-m 2048" 20QB_MEM = "-m 2048"
21
22# Sadly at the moment the full set of ptests is not robust enough and sporadically fails in random places
23PTEST_EXPECT_FAILURE = "1"