diff options
author | Cedric Ollivier <cedric.ollivier@orange.com> | 2018-08-14 16:30:24 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2018-08-14 16:30:24 +0000 |
commit | 7bee47e42290d218eae660ee5c44d844af9a41bf (patch) | |
tree | 74c9c5d3a2b955e97523896965c79c1bd0741477 /xtesting/ci/tier_builder.py | |
parent | 95092b511dbacac412dbe5b8ff3a28abb3d3f664 (diff) | |
parent | 64797a2b409752ac91ba702579397fdb357b8f28 (diff) |
Merge "Protect vs None when calling regex"
Diffstat (limited to 'xtesting/ci/tier_builder.py')
-rw-r--r-- | xtesting/ci/tier_builder.py | 3 |
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 |