[oe-commits] [openembedded-core] 05/36: oetest.py: Add default pscmd to oeTest
git at git.openembedded.org
git at git.openembedded.org
Wed May 18 22:25:01 UTC 2016
rpurdie pushed a commit to branch master-next
in repository openembedded-core.
commit 44aa8c3b6747179a0c4c156fc4922d838cdc19a4
Author: Mariano Lopez <mariano.lopez at linux.intel.com>
AuthorDate: Mon May 2 13:19:18 2016 +0000
oetest.py: Add default pscmd to oeTest
pscmd is used by some tests to get the process
running on the target. If the test are exported
there won't be any pscmd attibute in the oeTest.
This adds "ps" as default pscmd.
Signed-off-by: Mariano Lopez <mariano.lopez at linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
meta/lib/oeqa/oetest.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/meta/lib/oeqa/oetest.py b/meta/lib/oeqa/oetest.py
index bef9ac4..6a908ee 100644
--- a/meta/lib/oeqa/oetest.py
+++ b/meta/lib/oeqa/oetest.py
@@ -54,6 +54,7 @@ def filterByTagExp(testsuite, tagexp):
@LogResults
class oeTest(unittest.TestCase):
+ pscmd = "ps"
longMessage = True
@classmethod
@@ -373,7 +374,8 @@ class RuntimeTestContext(TestContext):
def loadTests(self):
super(RuntimeTestContext, self).loadTests()
- setattr(oeRuntimeTest, "pscmd", "ps -ef" if oeTest.hasPackage("procps") else "ps")
+ if oeTest.hasPackage("procps"):
+ oeRuntimeTest.pscmd = "ps -ef"
class ImageTestContext(RuntimeTestContext):
def __init__(self, d, target, host_dumper):
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list