[OE-core] [PATCHv3 4/5] oeqa/core/context.py: Add validation for run-tests option
mariano.lopez at linux.intel.com
mariano.lopez at linux.intel.com
Mon Jan 30 08:08:22 UTC 2017
From: Aníbal Limón <anibal.limon at linux.intel.com>
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 at linux.intel.com>
---
meta/lib/oeqa/core/context.py | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/meta/lib/oeqa/core/context.py b/meta/lib/oeqa/core/context.py
index efed4e6..4476750 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
--
2.6.6
More information about the Openembedded-core
mailing list