From: Aníbal Limón Date: Tue, 31 Jan 2017 21:05:53 +0000 (-0600) Subject: oeqa/core/context.py: Add validation for run-tests option X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~22689 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=877732406cad2ee4bf11293dc8ccddc2998ffbaf;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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 Signed-off-by: Richard Purdie --- diff --git a/meta/lib/oeqa/core/context.py b/meta/lib/oeqa/core/context.py index efed4e6b048..4476750a3c3 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