Skip to content

Commit 620374f

Browse files
committed
windows test
1 parent 401c163 commit 620374f

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

tests/scripts/end_to_end_test_utilities.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,8 @@ def run_codeflash_command(
8989

9090
command = build_command(cwd, config, test_root, config.benchmarks_root if config.benchmarks_root else None)
9191
process = subprocess.Popen(
92-
command, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, text=True, cwd=str(cwd), env=os.environ.copy()
92+
command, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, text=True, cwd=str(cwd), env=os.environ.copy(),
93+
encoding='utf-8', errors='replace'
9394
)
9495

9596
output = []
@@ -189,7 +190,8 @@ def run_trace_test(cwd: pathlib.Path, config: TestConfig, expected_improvement_p
189190
clear_directory(test_root)
190191
command = ["python", "-m", "codeflash.tracer", "-o", "codeflash.trace", "workload.py"]
191192
process = subprocess.Popen(
192-
command, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, text=True, cwd=str(cwd), env=os.environ.copy()
193+
command, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, text=True, cwd=str(cwd), env=os.environ.copy(),
194+
encoding='utf-8', errors='replace'
193195
)
194196

195197
output = []
@@ -217,7 +219,8 @@ def run_trace_test(cwd: pathlib.Path, config: TestConfig, expected_improvement_p
217219
# Second command: Run optimization
218220
command = ["codeflash", "--replay-test", str(replay_test_path), "--no-pr"]
219221
process = subprocess.Popen(
220-
command, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, text=True, cwd=str(cwd), env=os.environ.copy()
222+
command, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, text=True, cwd=str(cwd), env=os.environ.copy(),
223+
encoding='utf-8', errors='replace'
221224
)
222225

223226
output = []

0 commit comments

Comments
 (0)