process replay: show errors when updating refs (#25460)

* Update test_processes.py

* Apply suggestions from code review
This commit is contained in:
Shane Smiskol
2022-08-16 19:39:11 -07:00
committed by GitHub
parent 1388c80a8f
commit d7095d0d43
@@ -248,8 +248,12 @@ if __name__ == "__main__":
print("TEST SUCCEEDED")
else:
with open(REF_COMMIT_FN, "w") as f:
f.write(cur_commit)
print(f"\n\nUpdated reference logs for commit: {cur_commit}")
if failed:
print(diff1)
print("FAILED TO UPDATE REFS")
else:
with open(REF_COMMIT_FN, "w") as f:
f.write(cur_commit)
print(f"\n\nUpdated reference logs for commit: {cur_commit}")
sys.exit(int(failed))