summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/runtime/loader.py
diff options
context:
space:
mode:
authorMariano Lopez <mariano.lopez@linux.intel.com>2016-10-31 13:15:02 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-01-23 12:05:20 +0000
commit4cd982566b10375925e616b176e988219d65b170 (patch)
tree5301e66b2d48ff232533ab4c4485c0aeed85d530 /meta/lib/oeqa/runtime/loader.py
parent6ad52a82ea9129716f6fb0d2c50f51fc24ed171a (diff)
downloadpoky-4cd982566b10375925e616b176e988219d65b170.tar.gz
oeqa/runtime: Add case, context and loader classes for runtime testing
This adds OERuntimeTestCase, OERuntimeTestContext, and OERuntimeTestLoader to be used for runtime testing. As expected there are some changes in runtime context: - Adds the target to be used for runtime testing, the default is a SSH connection to the device under test running a OE image. - Runtime context requires image manifest because several tests are skipped if a package is missing or installed. - Several tests require the output of the ps command and it changes its output and arguments if busybox o procps is installed, so the case must use the correct ps command. [YOCTO #10234] (From OE-Core rev: f995f178de79d6d11422cd879d06371811f50651) 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/runtime/loader.py')
-rw-r--r--meta/lib/oeqa/runtime/loader.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/meta/lib/oeqa/runtime/loader.py b/meta/lib/oeqa/runtime/loader.py
new file mode 100644
index 0000000000..041ef976eb
--- /dev/null
+++ b/meta/lib/oeqa/runtime/loader.py
@@ -0,0 +1,16 @@
1# Copyright (C) 2016 Intel Corporation
2# Released under the MIT license (see COPYING.MIT)
3
4from oeqa.core.loader import OETestLoader
5from oeqa.runtime.case import OERuntimeTestCase
6
7class OERuntimeTestLoader(OETestLoader):
8 caseClass = OERuntimeTestCase
9
10 def _getTestCase(self, testCaseClass, tcName):
11 case = super(OERuntimeTestLoader, self)._getTestCase(testCaseClass, tcName)
12
13 # Adds custom attributes to the OERuntimeTestCase
14 setattr(case, 'target', self.tc.target)
15
16 return case