summaryrefslogtreecommitdiff
path: root/meta/lib
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:43 +0000
commit877732406cad2ee4bf11293dc8ccddc2998ffbaf (patch)
tree302405388b3030cc8387d098b7cd00f57b306224 /meta/lib
parent9923e3cdb58c2b3c54ec5fe99b2cec4cdc9fff92 (diff)
downloadopenembedded-core-877732406cad2ee4bf11293dc8ccddc2998ffbaf.tar.gz
openembedded-core-877732406cad2ee4bf11293dc8ccddc2998ffbaf.tar.bz2
openembedded-core-877732406cad2ee4bf11293dc8ccddc2998ffbaf.zip
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(). 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')
-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):
else:
self.tc_kwargs['init']['td'] = {}
- self.tc_kwargs['load']['modules'] = args.run_tests.split()
+
+ if args.run_tests:
+ self.tc_kwargs['load']['modules'] = args.run_tests.split()
+ else:
+ self.tc_kwargs['load']['modules'] = None
self.module_paths = args.CASES_PATHS