Displaying 1 result from an estimated 1 matches for "verify_file_check_prefix".
Did you mean:
verify_file_check_prefixes
2014 Feb 13
2
[LLVMdev] Bad test health
...line) > 0:
runlines.append(curr_runline + rest)
curr_runline = ''
else:
runlines.append(line)
elif not self.is_prefix(prefix):
pass
else:
used_prefixes.add(prefix)
return (runlines, used_prefixes)
def verify_file_check_prefixes(filename):
verifier = FileCheckVerifier()
runlines, used = verifier.scan_file(filename)
valid = verifier.extract_valid_prefixes(runlines)
unused = valid - used
bad = used - valid
if len(bad) > 0:
print(filename)
print("Bad: %s" % ', '.join(str(s)...