[harness-automation] update read method for TopologyConfig.txt format change (#2950)

This commit is contained in:
Jing
2018-08-07 23:47:01 +08:00
committed by Jonathan Hui
parent 8efb3c50e5
commit 492f0c3b10
@@ -501,7 +501,11 @@ class HarnessCase(unittest.TestCase):
try:
while 1:
topo_line = f_topo.readline().strip()
if re.match(r'#.*', topo_line):
continue
match_line = re.match(r'(.*)-(.*)', topo_line, re.M | re.I)
if not match_line:
continue
case_id = match_line.group(1)
if re.sub(r'\.', ' ', case_id) == self.case: