Skip to content

Commit cedf3f1

Browse files
committed
saving replay tests to test dir
1 parent 36ce827 commit cedf3f1

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

codeflash/cli_cmds/cli.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,9 +140,6 @@ def process_pyproject_config(args: Namespace) -> Namespace:
140140
assert Path(args.benchmarks_root).is_dir(), (
141141
f"--benchmarks-root {args.benchmarks_root} must be a valid directory"
142142
)
143-
assert Path(args.benchmarks_root).resolve().is_relative_to(Path(args.tests_root).resolve()), (
144-
f"--benchmarks-root {args.benchmarks_root} must be a subdirectory of --tests-root {args.tests_root}"
145-
)
146143
if env_utils.get_pr_number() is not None:
147144
import git
148145

codeflash/optimization/optimizer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ def run(self) -> None:
129129
trace_file.unlink()
130130

131131
self.replay_tests_dir = Path(
132-
tempfile.mkdtemp(prefix="codeflash_replay_tests_", dir=self.args.benchmarks_root)
132+
tempfile.mkdtemp(prefix="codeflash_replay_tests_", dir=self.args.tests_root)
133133
)
134134
trace_benchmarks_pytest(
135135
self.args.benchmarks_root, self.args.tests_root, self.args.project_root, trace_file

0 commit comments

Comments
 (0)