aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRex Lee <limingjiang@huawei.com>2017-02-27 03:10:35 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-02-27 03:10:35 +0000
commit340febcafe849757da4371eb28f05b2ad817d162 (patch)
tree9c8d09b2fadbe26b283cae6b6ca5b5fac5131023
parent2b441865e1e2f06b27ed8ab81c8559a9e5c50c58 (diff)
parent9a38c37d2fb2f0e7b477429041caa30f3a018eaf (diff)
Merge "ci in huawei-pod1 do not run test case after tc074"
-rw-r--r--yardstick/benchmark/core/task.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/yardstick/benchmark/core/task.py b/yardstick/benchmark/core/task.py
index 522ad4d23..aecf5bf4a 100644
--- a/yardstick/benchmark/core/task.py
+++ b/yardstick/benchmark/core/task.py
@@ -267,7 +267,11 @@ class TaskParser(object): # pragma: no cover
name_suffix = '-{}'.format(task_id[:8])
for cfg_attrs in context_cfgs:
- cfg_attrs['name'] = '{}{}'.format(cfg_attrs['name'], name_suffix)
+ try:
+ cfg_attrs['name'] = '{}{}'.format(cfg_attrs['name'],
+ name_suffix)
+ except KeyError:
+ pass
context_type = cfg_attrs.get("type", "Heat")
if "Heat" == context_type and "networks" in cfg_attrs:
# bugfix: if there are more than one network,