mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-06-20 21:42:05 +08:00
process replay: show errors when updating refs (#25460)
* Update test_processes.py * Apply suggestions from code review
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user