aboutsummaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/runtime
diff options
context:
space:
mode:
authorAníbal Limón <anibal.limon@linux.intel.com>2016-12-02 14:47:33 -0600
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-01-23 12:03:56 +0000
commitd3cc6761a13fd1da673829797b45323aed7997d0 (patch)
treea732ce6279a1ed3c88f4d24b55a31b8e58ec563b /meta/lib/oeqa/runtime
parent0050565d71cee5a0cc22660b2398e4334d4b6719 (diff)
downloadopenembedded-core-contrib-d3cc6761a13fd1da673829797b45323aed7997d0.tar.gz
oeqa/runtime/context: Add runtime option group and options for target type and server ip.
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Diffstat (limited to 'meta/lib/oeqa/runtime')
-rw-r--r--meta/lib/oeqa/runtime/context.py22
1 files changed, 20 insertions, 2 deletions
diff --git a/meta/lib/oeqa/runtime/context.py b/meta/lib/oeqa/runtime/context.py
index 10a8872871..e692bc0c60 100644
--- a/meta/lib/oeqa/runtime/context.py
+++ b/meta/lib/oeqa/runtime/context.py
@@ -44,17 +44,34 @@ class OERuntimeTestContextExecutor(OETestContextExecutor):
name = 'runtime'
help = 'runtime test component'
description = 'executes runtime tests over targets'
+
default_cases = os.path.join(os.path.abspath(os.path.dirname(__file__)),
'cases')
+ default_data = None
+
+ default_target_type = 'simpleremote'
+ default_server_ip = '192.168.7.1'
default_target_ip = '192.168.7.2'
def register_commands(self, logger, subparsers):
super(OERuntimeTestContextExecutor, self).register_commands(logger, subparsers)
- self.parser.add_argument('--target-ip', action='store',
+
+ runtime_group = self.parser.add_argument_group('runtime options')
+
+ runtime_group.add_argument('--target-type', action='store',
+ default=self.default_target_type, choices=['simpleremote', 'qemu'],
+ help="Target type of device under test, default: %s" \
+ % self.default_target_type)
+ runtime_group.add_argument('--target-ip', action='store',
default=self.default_target_ip,
help="IP address of device under test, default: %s" \
% self.default_target_ip)
- self.parser.add_argument('--packages-manifest', action='store',
+ runtime_group.add_argument('--server-ip', action='store',
+ default=self.default_target_ip,
+ help="IP address of device under test, default: %s" \
+ % self.default_server_ip)
+
+ runtime_group.add_argument('--packages-manifest', action='store',
help="Package manifest of the image under test")
def _process_args(self, logger, args):
@@ -63,6 +80,7 @@ class OERuntimeTestContextExecutor(OETestContextExecutor):
super(OERuntimeTestContextExecutor, self)._process_args(logger, args)
target = OESSHTarget(args.target_ip)
+
self.tc_kwargs['init']['target'] = target
packages_manifest = os.path.join(os.getcwd(), args.packages_manifest)