Skip to content

Commit

Permalink
ping myself
Browse files Browse the repository at this point in the history
  • Loading branch information
ydshieh committed Sep 27, 2024
1 parent 545a85a commit 78b29a6
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions utils/check_commit.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,12 @@ def create_script(target_test):
print(result.stdout)
if len(result.stderr) > 0:
print(f"pytest failed to run: {{result.stderr}}")
exit(-1)
if "ERROR: not found: " in result.stderr:
print("test not found in this commit")
exit(0)
else:
print(f"pytest failed to run: {{result.stderr}}")
exit(-1)
elif f"{target_test} FAILED" in result.stdout:
print("test failed")
exit(2)
Expand Down Expand Up @@ -77,7 +81,7 @@ def find_bad_commit(target_test, start_commit, end_commit):
print(f"Between `start_commit` {start_commit} and `end_commit` {end_commit}")
print(f"bad_commit: {bad_commit}\n")

# we need to check ... if all commit are good (doesn't really make sense)
# we need to check ... if all commits are good (doesn't really make sense)
return bad_commit


Expand Down

0 comments on commit 78b29a6

Please sign in to comment.