Skip to content

Commit 46878c5

Browse files
committed
test
1 parent d3d7286 commit 46878c5

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

tests/scripts/end_to_end_test_utilities.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,8 @@ def run_codeflash_command(
120120
def build_command(
121121
cwd: pathlib.Path, config: TestConfig, test_root: pathlib.Path, benchmarks_root: pathlib.Path | None = None
122122
) -> list[str]:
123-
python_path = "../../../codeflash/main.py" if "code_directories" in str(cwd) else "../codeflash/main.py"
124-
125-
base_command = ["python", python_path, "--file", config.file_path, "--no-pr"]
123+
# Use the installed codeflash entry point instead of running the script directly
124+
base_command = ["codeflash", "--file", config.file_path, "--no-pr"]
126125

127126
if config.function_name:
128127
base_command.extend(["--function", config.function_name])
@@ -216,7 +215,7 @@ def run_trace_test(cwd: pathlib.Path, config: TestConfig, expected_improvement_p
216215
return False
217216

218217
# Second command: Run optimization
219-
command = ["python", "../../../codeflash/main.py", "--replay-test", str(replay_test_path), "--no-pr"]
218+
command = ["codeflash", "--replay-test", str(replay_test_path), "--no-pr"]
220219
process = subprocess.Popen(
221220
command, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, text=True, cwd=str(cwd), env=os.environ.copy()
222221
)

0 commit comments

Comments
 (0)