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

* Update test_processes.py

* Apply suggestions from code review
pull/214/head
Shane Smiskol 3 years ago committed by GitHub
parent 1388c80a8f
commit d7095d0d43
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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