Skip to content

Commit 7904709

Browse files
authored
Merge pull request #65 from commit-0/agent
fix get-tests
2 parents d7d5175 + d28c94e commit 7904709

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

commit0/harness/get_pytest_ids.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
import bz2
22
from typing import List
3+
import commit0
4+
import os
35

46

57
def main(repo: str, verbose: int) -> List[str]:
68
repo = repo.lower()
79
repo = repo.replace(".", "-")
8-
with bz2.open(f"commit0/data/test_ids/{repo}.bz2", "rt") as f:
10+
commit0_path = os.path.dirname(commit0.__file__)
11+
bz2_file = f"{commit0_path}/data/test_ids/{repo}.bz2"
12+
with bz2.open(bz2_file, "rt") as f:
913
out = f.read()
1014
if verbose:
1115
print(out)

0 commit comments

Comments
 (0)