Displaying 1 result from an estimated 1 matches for "ok_count".
2014 Feb 13
2
[LLVMdev] Bad test health
...er()
for arg in args:
if os.path.isfile(arg):
yield arg
else:
for path, dirs, files in os.walk(arg):
for filepath in [os.path.join(path, f) for f in files]:
if ltt.is_test(filepath):
yield filepath
if __name__ == '__main__':
total = 0
ok_count = 0
bad_count = 0
for filepath in walk(sys.argv[1:]):
ok = verify_file_check_prefixes(filepath)
if ok: ok_count += 1
else: bad_count += 1
total += 1
print("Tests: %d, ok: %d, bad: %d (%.1f%%)" % (total, ok_count, bad_count, (float(bad_count) / max(1, total) * 100))...