Fix coverage.py

This commit is contained in:
Ethan Roseman 2020-10-15 18:42:54 -04:00
parent 67719a662f
commit 02aa37c31d
2 changed files with 3 additions and 2 deletions

View File

@ -11,4 +11,5 @@
"-Isrc",
"-D_LANGUAGE_C",
],
"python.pythonPath": "/usr/bin/python3",
}

View File

@ -74,10 +74,10 @@ if __name__ == "__main__":
for func in matched_but_undeleted_asm:
f = next(NONMATCHINGS_DIR.rglob(func + ".s"))
remove(f)
elif len(asm) != len(non_matched):
elif len(set(asm)) != len(set(non_matched)):
#print(f"warning: number of INCLUDE_ASM macros ({len(asm)}) != number of asm files ({len(non_matched)})")
if len(non_matched) > len(asm):
if len(set(non_matched)) > len(set(asm)):
print(f"The following functions are unmatched but are also unINCLUDEd: {set(non_matched) - set(asm)}")
if "--fail-unincluded" in argv: