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

* Update test_processes.py

* Apply suggestions from code review
old-commit-hash: d7095d0d4368f0168433455f16236151a91ef83c
This commit is contained in:
Shane Smiskol
2022-08-16 19:39:11 -07:00
committed by GitHub
parent f0422151b5
commit 5e393a41a4
@@ -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))