summaryrefslogtreecommitdiffstats
path: root/dovetail/run.py
diff options
context:
space:
mode:
authorhongbo tian <hongbo.tianhongbo@huawei.com>2016-11-09 07:16:29 +0000
committerGerrit Code Review <gerrit@opnfv.org>2016-11-09 07:16:29 +0000
commitcd7b2cdaef7226165e511337858f10279652104d (patch)
tree2b34f2321e9252cf21dbe68a9bea7d3ffb898655 /dovetail/run.py
parentb79bf3c4748cb82bdc644efa078d11cff52e98ac (diff)
parent53fcd0928b67a57ed1025dd4cad3df50ea020642 (diff)
Merge "dovetail tool: ensure sub_testcase_list and testcase are not None"
Diffstat (limited to 'dovetail/run.py')
-rwxr-xr-xdovetail/run.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/dovetail/run.py b/dovetail/run.py
index 39dec07c..310ef2aa 100755
--- a/dovetail/run.py
+++ b/dovetail/run.py
@@ -37,6 +37,10 @@ def run_test(scenario):
for testcase_name in scenario['testcase_list']:
logger.info('>>[testcase]: %s' % (testcase_name))
testcase = Testcase.get(testcase_name)
+ if testcase is None:
+ logger.error('testcase %s is not defined in testcase folder, \
+ skipping' % (testcase_name))
+ continue
run_testcase = True
if testcase.exceed_max_retry_times():