clean up coverage.py

This commit is contained in:
Alex Bates 2020-08-19 02:47:02 +01:00
parent fbbbf83d22
commit 30f57eee9f
No known key found for this signature in database
GPG Key ID: 5E11C2DB78877706

View File

@ -64,10 +64,8 @@ if __name__ == "__main__":
print(f"The following functions have been matched but still exist in asm/nonmatchings/: {' '.join(matched_but_undeleted_asm)}")
if "--fail-matched-undeleted" in argv:
print(f"The following functions have been matched but still exist in asm/nonmatchings/: {' '.join(matched_but_undeleted_asm)}")
exit(1)
else:
if "--delete-matched" in argv or input("Delete them [y/N]? ").upper() == "Y":
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]
remove(file)