summaryrefslogtreecommitdiffstats
path: root/dovetail/report.py
diff options
context:
space:
mode:
authorxudan <xudan16@huawei.com>2017-04-22 04:00:51 +0000
committerxudan <xudan16@huawei.com>2017-04-22 06:55:48 +0000
commit37cbf88c26866db4dc180e33fccac59abc1fa586 (patch)
tree6d2a2b5c7e14d0c36d6960d2104400d26214ea92 /dovetail/report.py
parent87a9feab5ffefcf38f5279c13058e5c67603583c (diff)
Bugfix about the ipv6 results checker
JIRA: DOVETAIL-404 1. IPV6 sub-testcase's name includes [id], which will affects the regex. 2. Remove the [id] from the name of the sub_testcases. Change-Id: I51b567e8382fa4e701f8b32ba7ea195d49fd31eb Signed-off-by: xudan <xudan16@huawei.com>
Diffstat (limited to 'dovetail/report.py')
-rw-r--r--dovetail/report.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/dovetail/report.py b/dovetail/report.py
index c7eff3d2..c51ce687 100644
--- a/dovetail/report.py
+++ b/dovetail/report.py
@@ -386,11 +386,17 @@ class FunctestChecker(object):
def get_sub_testcase(sub_testcase, result):
if not result:
return False
+ sub_testcase = re.sub("\[.*?\]", "", sub_testcase)
reg = sub_testcase + '[\s+\d+]'
find_reg = re.compile(reg)
match = find_reg.findall(result)
if match:
return True
+ reg = sub_testcase + '$'
+ find_reg = re.compile(reg)
+ match = find_reg.findall(result)
+ if match:
+ return True
return False
def check(self, testcase, db_result):