Skip to content

Commit 4a25e45

Browse files
committed
use func_name
1 parent 722d3d2 commit 4a25e45

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

eval_protocol/cli_commands/local_test.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -165,12 +165,8 @@ def local_test_command(args: argparse.Namespace) -> int:
165165
print("Error: Please select exactly one evaluation test for 'local-test'.")
166166
return 1
167167
chosen = selected[0]
168-
abs_path = os.path.abspath(chosen.file_path)
169-
try:
170-
rel = os.path.relpath(abs_path, project_root)
171-
except Exception:
172-
rel = abs_path
173-
pytest_target = rel
168+
func_name = chosen.qualname.split(".")[-1]
169+
pytest_target = _build_entry_point(project_root, chosen.file_path, func_name)
174170

175171
ignore_docker = bool(getattr(args, "ignore_docker", False))
176172
build_extras_str = getattr(args, "docker_build_extra", "") or ""

0 commit comments

Comments
 (0)