From 64797a2b409752ac91ba702579397fdb357b8f28 Mon Sep 17 00:00:00 2001 From: Cédric Ollivier Date: Tue, 14 Aug 2018 18:23:41 +0200 Subject: Protect vs None when calling regex MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I93d22442c28e674433234d7729838944962bdbe2 Signed-off-by: Cédric Ollivier --- xtesting/ci/tier_builder.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'xtesting/ci/tier_builder.py') diff --git a/xtesting/ci/tier_builder.py b/xtesting/ci/tier_builder.py index 66ad3250..67c5b084 100644 --- a/xtesting/ci/tier_builder.py +++ b/xtesting/ci/tier_builder.py @@ -63,7 +63,8 @@ class TierBuilder(object): else: for dependency in dic_testcase['dependencies']: kenv = dependency.keys()[0] - if not re.search(dependency[kenv], env.get(kenv)): + if not re.search(dependency[kenv], + env.get(kenv) or ''): testcase.skipped = True tier.skip_test(testcase) break -- cgit 1.2.3-korg