Testing: Relax expected file count in t_flag_csplit_groups (#7163)
This commit is contained in:
parent
97838325cd
commit
9d8baa1e44
|
|
@ -2685,7 +2685,7 @@ class VlTest:
|
|||
self.error("File_grep: " + filename + ": Got='" + match.group(1) + "' Expected='" +
|
||||
str(expvalue) + "' in regexp: '" + regexp + "'")
|
||||
return None
|
||||
return [match.groups()]
|
||||
return match.groups()
|
||||
|
||||
def file_grep_count(self, filename: str, regexp, expcount: int) -> None:
|
||||
contents = self.file_contents(filename)
|
||||
|
|
|
|||
|
|
@ -125,7 +125,9 @@ test.file_grep_not(test.obj_dir + "/" + test.vm_prefix + "_classes.mk", "vm_clas
|
|||
test.file_grep_not(test.obj_dir + "/" + test.vm_prefix + "_classes.mk", "vm_classes_2")
|
||||
|
||||
# Check combine count
|
||||
test.file_grep(test.stats, r'Node count, CFILE + (\d+)', (276 if test.vltmt else 259))
|
||||
nFiles = int(test.file_grep(test.stats, r'Node count, CFILE + (\d+)')[0])
|
||||
if nFiles < 200:
|
||||
test.error("Expecting >= 200 files, but got " + str(nFiles))
|
||||
test.file_grep(test.stats, r'Makefile targets, VM_CLASSES_FAST + (\d+)', 2)
|
||||
test.file_grep(test.stats, r'Makefile targets, VM_CLASSES_SLOW + (\d+)', 2)
|
||||
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ if test.vlt_all:
|
|||
modps = test.file_grep(
|
||||
out_filename,
|
||||
r'{"type":"MODULE","name":"mb","addr":"([^"]*)","loc":"\w,99:[^"]*",.*"origName":"mb"')
|
||||
modp = modps[0][0]
|
||||
modp = modps[0]
|
||||
test.file_grep(
|
||||
out_filename,
|
||||
r'{"type":"CELL","name":"t.ma0.mb0","addr":"[^"]*","loc":"\w,87:[^"]*",.*"origName":"mb0",.*"modp":"([^"]*)"',
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ if test.vlt_all:
|
|||
modps = test.file_grep(
|
||||
out_filename,
|
||||
r'{"type":"MODULE","name":"mb","addr":"([^"]*)","loc":"\w,99:[^"]*",.*"origName":"mb"')
|
||||
modp = modps[0][0]
|
||||
modp = modps[0]
|
||||
test.file_grep(
|
||||
out_filename,
|
||||
r'{"type":"CELL","name":"t.ma0.mb0","addr":"[^"]*","loc":"\w,87:[^"]*",.*"origName":"mb0",.*"modp":"([^"]*)"',
|
||||
|
|
|
|||
Loading…
Reference in New Issue