aboutsummaryrefslogtreecommitdiffstats
path: root/xtesting/ci
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2018-08-14 18:23:41 +0200
committerCédric Ollivier <cedric.ollivier@orange.com>2018-08-14 18:23:41 +0200
commit64797a2b409752ac91ba702579397fdb357b8f28 (patch)
tree76e8dfd320a5f672e3b28d034186d8dad9499508 /xtesting/ci
parenta9491ef0948f8fe3eb3772b6b6ae44d86bde7e9b (diff)
Protect vs None when calling regex
Change-Id: I93d22442c28e674433234d7729838944962bdbe2 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Diffstat (limited to 'xtesting/ci')
-rw-r--r--xtesting/ci/tier_builder.py3
1 files changed, 2 insertions, 1 deletions
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