Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make run_gen.py work on windows #196

Merged
merged 1 commit into from
Jan 9, 2024
Merged
Changes from all 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
4 changes: 4 additions & 0 deletions scripts/run_gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
import multiprocessing
import multiprocessing.managers
import os
import platform
import re
import shutil
import stat
Expand Down Expand Up @@ -1510,6 +1511,9 @@ def prepare_env_and_start_testing(out_dir, timeout, targets, num_jobs, config_fi

# Check for binary of generator
yarpgen_bin = os.path.abspath(common.yarpgen_scripts + os.sep + "yarpgen")
if (platform.system() == 'Windows') :
yarpgen_bin += ".exe"

common.check_and_copy(yarpgen_bin, out_dir)
ret_code, output, err_output, time_expired, elapsed_time = common.run_cmd([yarpgen_bin, "-v"], yarpgen_timeout, 0)
common.yarpgen_version_str = str(output, "utf-8")
Expand Down
Loading