Openembedded Core Discussions
 help / color / mirror / Atom feed
From: "Aníbal Limón" <anibal.limon@linux.intel.com>
To: openembedded-core@lists.openembedded.org
Subject: [PATCH 3/4] oeqa/core/context.py: Add validation for run-tests option
Date: Tue, 31 Jan 2017 14:52:54 -0600	[thread overview]
Message-ID: <1485895975-7611-3-git-send-email-anibal.limon@linux.intel.com> (raw)
In-Reply-To: <1485895975-7611-1-git-send-email-anibal.limon@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@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.1.4



  parent reply	other threads:[~2017-01-31 20:49 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-31 20:52 [PATCH 1/4] runtime/cases: Fix case numbers, missing cases and unused classes Aníbal Limón
2017-01-31 20:52 ` [PATCH 2/4] testimage.bbclass: Add missing suites on some sato images, dependency of createrepo and DL_DIR update Aníbal Limón
2017-01-31 20:52 ` Aníbal Limón [this message]
2017-01-31 20:52 ` [PATCH 4/4] oeqa/runtime/cases: Rename syslog module to oe_syslog Aníbal Limón
2017-01-31 20:53 ` ✗ patchtest: failure for "runtime/cases: Fix case number..." and 3 more Patchwork

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1485895975-7611-3-git-send-email-anibal.limon@linux.intel.com \
    --to=anibal.limon@linux.intel.com \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox