mirror of
https://github.com/pmret/papermario.git
synced 2024-09-19 16:01:48 +02:00
Fix coverage.py
This commit is contained in:
parent
67719a662f
commit
02aa37c31d
1
.vscode/settings.json
vendored
1
.vscode/settings.json
vendored
@ -11,4 +11,5 @@
|
|||||||
"-Isrc",
|
"-Isrc",
|
||||||
"-D_LANGUAGE_C",
|
"-D_LANGUAGE_C",
|
||||||
],
|
],
|
||||||
|
"python.pythonPath": "/usr/bin/python3",
|
||||||
}
|
}
|
||||||
|
@ -74,10 +74,10 @@ if __name__ == "__main__":
|
|||||||
for func in matched_but_undeleted_asm:
|
for func in matched_but_undeleted_asm:
|
||||||
f = next(NONMATCHINGS_DIR.rglob(func + ".s"))
|
f = next(NONMATCHINGS_DIR.rglob(func + ".s"))
|
||||||
remove(f)
|
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)})")
|
#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)}")
|
print(f"The following functions are unmatched but are also unINCLUDEd: {set(non_matched) - set(asm)}")
|
||||||
|
|
||||||
if "--fail-unincluded" in argv:
|
if "--fail-unincluded" in argv:
|
||||||
|
Loading…
Reference in New Issue
Block a user