summaryrefslogtreecommitdiffstats
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-19 09:05:18 +0100
commit86d65d79ad5dfdc53928baa0fe9aa8adbfa80a72 (patch)
treeedda083ddf4cedeac2eabbbbb4f9dbb5229d0533 /meta/lib/oeqa/oetest.py
parent20afc59704542d450359d2896c83c32d492a10b0 (diff)
downloadpoky-86d65d79ad5dfdc53928baa0fe9aa8adbfa80a72.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. (From OE-Core rev: 44aa8c3b6747179a0c4c156fc4922d838cdc19a4) 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):
54@LogResults 54@LogResults
55class oeTest(unittest.TestCase): 55class oeTest(unittest.TestCase):
56 56
57 pscmd = "ps"
57 longMessage = True 58 longMessage = True
58 59
59 @classmethod 60 @classmethod
@@ -373,7 +374,8 @@ class RuntimeTestContext(TestContext):
373 374
374 def loadTests(self): 375 def loadTests(self):
375 super(RuntimeTestContext, self).loadTests() 376 super(RuntimeTestContext, self).loadTests()
376 setattr(oeRuntimeTest, "pscmd", "ps -ef" if oeTest.hasPackage("procps") else "ps") 377 if oeTest.hasPackage("procps"):
378 oeRuntimeTest.pscmd = "ps -ef"
377 379
378class ImageTestContext(RuntimeTestContext): 380class ImageTestContext(RuntimeTestContext):
379 def __init__(self, d, target, host_dumper): 381 def __init__(self, d, target, host_dumper):