summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa
diff options
context:
space:
mode:
authorAníbal Limón <anibal.limon@linux.intel.com>2017-05-26 15:37:28 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-06-02 13:36:13 +0100
commit13175d8d48fab9449c144d7c5f332b9682ae13e9 (patch)
tree40f39d20611d25183d73d1f5ec926a1776399318 /meta/lib/oeqa
parentf3f40fe97b98af227e43fcb1439c66a95cd3ccc4 (diff)
downloadpoky-13175d8d48fab9449c144d7c5f332b9682ae13e9.tar.gz
oeqa/sdk/context.py: Import argparse_oe at OESDKTestContext.run method
This import was at level of OESDKTestContext.register_commands but OESDKTestContext.run method need it to raise exceptions. (From OE-Core rev: 35efb419de1dbebd269d87895645934707130746) Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa')
-rw-r--r--meta/lib/oeqa/sdk/context.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/lib/oeqa/sdk/context.py b/meta/lib/oeqa/sdk/context.py
index 0189ed851e..509d2b4ea7 100644
--- a/meta/lib/oeqa/sdk/context.py
+++ b/meta/lib/oeqa/sdk/context.py
@@ -44,8 +44,6 @@ class OESDKTestContextExecutor(OETestContextExecutor):
44 default_test_data = None 44 default_test_data = None
45 45
46 def register_commands(self, logger, subparsers): 46 def register_commands(self, logger, subparsers):
47 import argparse_oe
48
49 super(OESDKTestContextExecutor, self).register_commands(logger, subparsers) 47 super(OESDKTestContextExecutor, self).register_commands(logger, subparsers)
50 48
51 sdk_group = self.parser.add_argument_group('sdk options') 49 sdk_group = self.parser.add_argument_group('sdk options')
@@ -109,6 +107,8 @@ class OESDKTestContextExecutor(OETestContextExecutor):
109 log(env) 107 log(env)
110 108
111 def run(self, logger, args): 109 def run(self, logger, args):
110 import argparse_oe
111
112 if not args.sdk_dir: 112 if not args.sdk_dir:
113 raise argparse_oe.ArgumentUsageError("No SDK directory "\ 113 raise argparse_oe.ArgumentUsageError("No SDK directory "\
114 "specified please do, --sdk-dir SDK_DIR", self.name) 114 "specified please do, --sdk-dir SDK_DIR", self.name)