diff options
author | Cédric Ollivier <cedric.ollivier@orange.com> | 2018-08-14 18:23:41 +0200 |
---|---|---|
committer | Cédric Ollivier <cedric.ollivier@orange.com> | 2018-08-14 18:23:41 +0200 |
commit | 64797a2b409752ac91ba702579397fdb357b8f28 (patch) | |
tree | 76e8dfd320a5f672e3b28d034186d8dad9499508 /xtesting | |
parent | a9491ef0948f8fe3eb3772b6b6ae44d86bde7e9b (diff) |
Protect vs None when calling regex
Change-Id: I93d22442c28e674433234d7729838944962bdbe2
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Diffstat (limited to 'xtesting')
-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 |