fix coverage.py --delete-matched

This commit is contained in:
Alex Bates 2020-08-20 20:02:06 +01:00
parent 79944164d9
commit 7f2e872956
No known key found for this signature in database
GPG Key ID: 5E11C2DB78877706

View File

@ -67,7 +67,7 @@ if __name__ == "__main__":
exit(1)
elif "--delete-matched" in argv or input("Delete them [y/N]? ").upper() == "Y":
for func in matched_but_undeleted_asm:
file = glob(path.join(DIR, f"../asm/nonmatchings/*/{func}.s"))[0]
file = glob(path.join(DIR, f"asm/nonmatchings/*/{func}.s"))[0]
remove(file)
elif len(asm) != len(non_matched):
print(f"warning: number of INCLUDE_ASM macros ({len(asm)}) != number of asm files ({len(non_matched)})")