aboutsummaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/oetest.py
diff options
context:
space:
mode:
authorMariano Lopez <mariano.lopez@linux.intel.com>2016-05-02 13:19:18 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-05-18 23:23:43 +0100
commit44aa8c3b6747179a0c4c156fc4922d838cdc19a4 (patch)
treec9f800545879040d474092cf4eb40c7c01655ad3 /meta/lib/oeqa/oetest.py
parentbd4dbe4f5ba334690fcb6f26eb06c793ac026b55 (diff)
downloadopenembedded-core-contrib-44aa8c3b6747179a0c4c156fc4922d838cdc19a4.tar.gz
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@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/oetest.py')
-rw-r--r--meta/lib/oeqa/oetest.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/lib/oeqa/oetest.py b/meta/lib/oeqa/oetest.py
index bef9ac4961..6a908ee379 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):