fix test reliability issue (#657)

* fix test reliability issue

* fix lint issue
This commit is contained in:
liuyhwangyh
2023-12-01 15:14:35 +08:00
committed by GitHub
parent 1b6723ea24
commit a28f7aa96c

View File

@@ -115,6 +115,9 @@ def get_case_model_info():
elements = line.split(':')
test_file = elements[0]
model_pos = line.find('damo')
if model_pos == -1 or (model_pos - 1) > len(line):
print('Processing line: %s failed' % line)
continue
left_quote = line[model_pos - 1]
rquote_idx = line.rfind(left_quote)
model_name = line[model_pos:rquote_idx]