Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions codeflash/cli_cmds/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,6 @@ def process_pyproject_config(args: Namespace) -> Namespace:
assert Path(args.benchmarks_root).is_dir(), (
f"--benchmarks-root {args.benchmarks_root} must be a valid directory"
)
assert Path(args.benchmarks_root).resolve().is_relative_to(Path(args.tests_root).resolve()), (
f"--benchmarks-root {args.benchmarks_root} must be a subdirectory of --tests-root {args.tests_root}"
)
if env_utils.get_pr_number() is not None:
import git

Expand Down
2 changes: 1 addition & 1 deletion codeflash/optimization/optimizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def run(self) -> None:
trace_file.unlink()

self.replay_tests_dir = Path(
tempfile.mkdtemp(prefix="codeflash_replay_tests_", dir=self.args.benchmarks_root)
tempfile.mkdtemp(prefix="codeflash_replay_tests_", dir=self.args.tests_root)
)
trace_benchmarks_pytest(
self.args.benchmarks_root, self.args.tests_root, self.args.project_root, trace_file
Expand Down
Loading