Skip to content

Commit b374b6e

Browse files
committed
made benchmarks-root use resolve()
1 parent 21a79eb commit b374b6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

codeflash/cli_cmds/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def process_pyproject_config(args: Namespace) -> Namespace:
135135
if args.benchmark:
136136
assert args.benchmarks_root is not None, "--benchmarks-root must be specified when running with --benchmark"
137137
assert Path(args.benchmarks_root).is_dir(), f"--benchmarks-root {args.benchmarks_root} must be a valid directory"
138-
assert Path(args.benchmarks_root).is_relative_to(Path(args.tests_root)), (
138+
assert Path(args.benchmarks_root).resolve().is_relative_to(Path(args.tests_root).resolve()), (
139139
f"--benchmarks-root {args.benchmarks_root} must be a subdirectory of --tests-root {args.tests_root}"
140140
)
141141
if env_utils.get_pr_number() is not None:

0 commit comments

Comments
 (0)