summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAníbal Limón <anibal.limon@linux.intel.com>2017-01-31 15:05:53 -0600
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-01-31 23:27:47 +0000
commitbfead495de7ad78e7bc2ec550676a16420e98edc (patch)
treeba2a8a1a31a495123efce6e43f29ceaad87a37f0
parent90b4e075f4e0c180f4e52e29c4443c6294687363 (diff)
downloadpoky-bfead495de7ad78e7bc2ec550676a16420e98edc.tar.gz
oeqa/core/context.py: Add validation for run-tests option
The run-tests option is optional so if isn't specified set to None instead of crash on split(). (From OE-Core rev: 877732406cad2ee4bf11293dc8ccddc2998ffbaf) Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/lib/oeqa/core/context.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/meta/lib/oeqa/core/context.py b/meta/lib/oeqa/core/context.py
index efed4e6b04..4476750a3c 100644
--- a/meta/lib/oeqa/core/context.py
+++ b/meta/lib/oeqa/core/context.py
@@ -215,7 +215,11 @@ class OETestContextExecutor(object):
215 else: 215 else:
216 self.tc_kwargs['init']['td'] = {} 216 self.tc_kwargs['init']['td'] = {}
217 217
218 self.tc_kwargs['load']['modules'] = args.run_tests.split() 218
219 if args.run_tests:
220 self.tc_kwargs['load']['modules'] = args.run_tests.split()
221 else:
222 self.tc_kwargs['load']['modules'] = None
219 223
220 self.module_paths = args.CASES_PATHS 224 self.module_paths = args.CASES_PATHS
221 225