Testing: Relax expected file count in t_flag_csplit_groups (#7163)

This commit is contained in:
Geza Lore 2026-03-01 13:27:46 +00:00 committed by GitHub
parent 97838325cd
commit 9d8baa1e44
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 6 additions and 4 deletions

View File

@ -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)

View File

@ -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)

View File

@ -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":"([^"]*)"',

View File

@ -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":"([^"]*)"',