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

* Update test_processes.py

* Apply suggestions from code review
old-commit-hash: d7095d0d43
taco
Shane Smiskol 3 years ago committed by GitHub
parent f0422151b5
commit 5e393a41a4
  1. 10
      selfdrive/test/process_replay/test_processes.py

@ -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))

Loading…
Cancel
Save