[oe-commits] [openembedded-core] 04/12: runtime/cases/ptest.py: do not require ptest-pkgs in IMAGE_FEATURES

git at git.openembedded.org git at git.openembedded.org
Thu Jan 4 11:17:17 UTC 2018


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit 2acd4a61fae270f8f4f70e5975565c4cd926882e
Author: Alexander Kanavin <alexander.kanavin at linux.intel.com>
AuthorDate: Thu Dec 21 14:44:58 2017 +0200

    runtime/cases/ptest.py: do not require ptest-pkgs in IMAGE_FEATURES
    
    Doing so means that all available ptests for packages in the image
    will be installed and run; some of them 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.
    
    Conversely, do not run the test if ptest-runner is not installed
    (which means there are no ptests available, as they pull it in via a
    dependency).
    
    Signed-off-by: Alexander Kanavin <alexander.kanavin at linux.intel.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 meta/lib/oeqa/runtime/cases/ptest.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/meta/lib/oeqa/runtime/cases/ptest.py b/meta/lib/oeqa/runtime/cases/ptest.py
index ec8c038..63e1195 100644
--- a/meta/lib/oeqa/runtime/cases/ptest.py
+++ b/meta/lib/oeqa/runtime/cases/ptest.py
@@ -48,9 +48,12 @@ class PtestRunnerTest(OERuntimeTestCase):
 
     @OETestID(1600)
     @skipIfNotFeature('ptest', 'Test requires ptest to be in DISTRO_FEATURES')
-    @skipIfNotFeature('ptest-pkgs', 'Test requires ptest-pkgs to be in IMAGE_FEATURES')
     @OETestDepends(['ssh.SSHTest.test_ssh'])
     def test_ptestrunner(self):
+        status, output = self.target.run('which ptest-runner', 0)
+        if len(output) == 0:
+            self.skipTest("No -ptest packages are installed in the image")
+
         import datetime
 
         test_log_dir = self.td.get('TEST_LOG_DIR', '')

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list