diff options
author | 2020-09-05 10:55:05 +0200 | |
---|---|---|
committer | 2020-09-05 12:22:56 +0200 | |
commit | 376b8e86dd5c9e9434f6b7d4467a5f22828aef57 (patch) | |
tree | 0b32274ee20ab4e10e1c95fc55b3f38ead695527 /xtesting | |
parent | 0a9f6805017efc45a0ebc0dc09e71a8e4e0526db (diff) |
Make testcases descriptions optional
Change-Id: If0e45f10816edd2199c589bb5fbfc03fbc0a4b77
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit 150405525d6e9924858cd40c872600ddb2bfb57c)
Diffstat (limited to 'xtesting')
-rw-r--r-- | xtesting/ci/tier_builder.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/xtesting/ci/tier_builder.py b/xtesting/ci/tier_builder.py index 27afc7d1..747d2263 100644 --- a/xtesting/ci/tier_builder.py +++ b/xtesting/ci/tier_builder.py @@ -44,15 +44,15 @@ class TierBuilder(): for dic_tier in self.dic_tier_array: tier = tier_handler.Tier( name=dic_tier['name'], order=dic_tier['order'], - description=dic_tier['description']) + description=dic_tier.get('description', '')) for dic_testcase in dic_tier['testcases']: testcase = tier_handler.TestCase( name=dic_testcase['case_name'], enabled=dic_testcase.get('enabled', True), skipped=False, - criteria=dic_testcase['criteria'], - blocking=dic_testcase['blocking'], - description=dic_testcase['description'], + criteria=dic_testcase.get('criteria', 100), + blocking=dic_testcase.get('blocking', True), + description=dic_testcase.get('description', ''), project=dic_testcase['project_name']) if not dic_testcase.get('dependencies'): if testcase.is_enabled(): |