|
|
@ -177,8 +177,8 @@ if __name__ == "__main__": |
|
|
|
upload = args.update_refs or args.upload_only |
|
|
|
upload = args.update_refs or args.upload_only |
|
|
|
os.makedirs(os.path.dirname(FAKEDATA), exist_ok=True) |
|
|
|
os.makedirs(os.path.dirname(FAKEDATA), exist_ok=True) |
|
|
|
|
|
|
|
|
|
|
|
# if upload: |
|
|
|
if upload: |
|
|
|
# assert full_test, "Need to run full test when updating refs" |
|
|
|
assert full_test, "Need to run full test when updating refs" |
|
|
|
|
|
|
|
|
|
|
|
try: |
|
|
|
try: |
|
|
|
ref_commit = open(REF_COMMIT_FN).read().strip() |
|
|
|
ref_commit = open(REF_COMMIT_FN).read().strip() |
|
|
@ -248,10 +248,6 @@ if __name__ == "__main__": |
|
|
|
print("TEST SUCCEEDED") |
|
|
|
print("TEST SUCCEEDED") |
|
|
|
|
|
|
|
|
|
|
|
else: |
|
|
|
else: |
|
|
|
# if failed: |
|
|
|
|
|
|
|
# print(diff1) |
|
|
|
|
|
|
|
# print("FAILED TO UPDATE REFS") |
|
|
|
|
|
|
|
# else: |
|
|
|
|
|
|
|
with open(REF_COMMIT_FN, "w") as f: |
|
|
|
with open(REF_COMMIT_FN, "w") as f: |
|
|
|
f.write(cur_commit) |
|
|
|
f.write(cur_commit) |
|
|
|
print(f"\n\nUpdated reference logs for commit: {cur_commit}") |
|
|
|
print(f"\n\nUpdated reference logs for commit: {cur_commit}") |
|
|
|