diff options
author | Cédric Ollivier <cedric.ollivier@orange.com> | 2020-09-05 10:55:05 +0200 |
---|---|---|
committer | Cédric Ollivier <cedric.ollivier@orange.com> | 2020-09-05 12:21:29 +0200 |
commit | ab99cdf46d835e19a3aee295bc89680e694fc332 (patch) | |
tree | 22ff5dcbf398bdcbd8317e9b2e5f01c73c190a4b | |
parent | a4aebbfc2ae4ab89b1636ac3e24bf2d7422440f6 (diff) |
Make testcases descriptions optional
Change-Id: If0e45f10816edd2199c589bb5fbfc03fbc0a4b77
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit 150405525d6e9924858cd40c872600ddb2bfb57c)
-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(): |