Skip to content

Commit

Permalink
Make run_gen.py work on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
OfekShilon authored and dbabokin committed Jan 9, 2024
1 parent 1adf2e0 commit 9a95bd2
Showing 1 changed file with 4 additions and 0 deletions.
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

0 comments on commit 9a95bd2

Please sign in to comment.