summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa
diff options
context:
space:
mode:
authorAlexander Kanavin <alexander.kanavin@linux.intel.com>2018-01-04 14:13:44 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-01-05 11:55:35 +0000
commit8288a832e111d5595bbf24bc44fd32516ebd0546 (patch)
tree9d46f52aba28528d92e2804f9dc8821cbd835292 /meta/lib/oeqa
parent0d2020fcffa00cc2464ce80e749fe99b9dfab2a0 (diff)
downloadpoky-8288a832e111d5595bbf24bc44fd32516ebd0546.tar.gz
runtime/cases/ptest.py: do not require ptest-pkgs in IMAGE_FEATURES; run only when ptest-runner is availalble;
Previously the test would execute only when all available ptests for packages in the image were installed; some of those tests may be broken, never finish, take a very long time or simply irrelevant to the user who wants to check ptests of only a few specific packages, and does so by listing them explicitly via IMAGE_INSTALL_append or similar. Presence of ptest-runner means there is at least one ptest package installed as they pull it in via a class dependency; ptest-runner is not generally installed otherwise. (From OE-Core rev: e07a2b9c2b08a465baeaaca86461e07817f84a52) Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa')
-rw-r--r--meta/lib/oeqa/runtime/cases/ptest.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/meta/lib/oeqa/runtime/cases/ptest.py b/meta/lib/oeqa/runtime/cases/ptest.py
index ec8c038a56..a2b6ffdfe1 100644
--- a/meta/lib/oeqa/runtime/cases/ptest.py
+++ b/meta/lib/oeqa/runtime/cases/ptest.py
@@ -48,9 +48,12 @@ class PtestRunnerTest(OERuntimeTestCase):
48 48
49 @OETestID(1600) 49 @OETestID(1600)
50 @skipIfNotFeature('ptest', 'Test requires ptest to be in DISTRO_FEATURES') 50 @skipIfNotFeature('ptest', 'Test requires ptest to be in DISTRO_FEATURES')
51 @skipIfNotFeature('ptest-pkgs', 'Test requires ptest-pkgs to be in IMAGE_FEATURES')
52 @OETestDepends(['ssh.SSHTest.test_ssh']) 51 @OETestDepends(['ssh.SSHTest.test_ssh'])
53 def test_ptestrunner(self): 52 def test_ptestrunner(self):
53 status, output = self.target.run('which ptest-runner', 0)
54 if status != 0:
55 self.skipTest("No -ptest packages are installed in the image")
56
54 import datetime 57 import datetime
55 58
56 test_log_dir = self.td.get('TEST_LOG_DIR', '') 59 test_log_dir = self.td.get('TEST_LOG_DIR', '')