Skip to content

Commit

Permalink
fix test bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
nanjiangwill committed Sep 25, 2024
1 parent 88cdc03 commit a68f94e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion commit0/harness/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class Files(TypedDict):
BASE_IMAGE_BUILD_DIR = Path("logs/build_images/base")
REPO_IMAGE_BUILD_DIR = Path("logs/build_images/repo")
RUN_PYTEST_LOG_DIR = Path("logs/pytest")
RUN_AIDER_LOG_DIR = Path("logs/aider")
RUN_AGENT_LOG_DIR = Path("logs/agent")

# Constants - Test Types, Statuses, Commands
FAIL_TO_PASS = "FAIL_TO_PASS"
Expand Down
2 changes: 1 addition & 1 deletion commit0/harness/run_pytest_ids.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def main(
try:
local_repo = git.Repo(repo_or_repo_dir)
logger.info(f"Loaded a git repo from {repo_or_repo_dir}")
except git.exc.NoSuchPathError: # type: ignore
except (git.exc.NoSuchPathError, git.exc.InvalidGitRepositoryError): # type: ignore
repo_dir = os.path.join(base_dir, repo_name)
logger.error(f"{repo_or_repo_dir} is not a git dir, trying {repo_dir} again")
try:
Expand Down

0 comments on commit a68f94e

Please sign in to comment.