Skip to content

Commit

Permalink
Merge pull request #1140 from sosy-lab/fix-executable-paths-without-dir
Browse files Browse the repository at this point in the history
add "./" to executable paths not containing a directory
  • Loading branch information
dbeyer authored Dec 23, 2024
2 parents b2cb946 + c023a76 commit fe51d28
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions contrib/vcloud/benchmarkclient_executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,13 @@ def init(config, benchmark):

# The vcloud uses the tool location later to determine which files need to be uploaded
# So this needs to point to the actual path where the executable is on the host
if not executable_for_cloud.is_absolute() and "/" not in str(
executable_for_cloud
):
# add ./ to the beginning of the path if the executable is just the executable name
# otherwise os.path.dirname will return '' causing problems with some tool info modules
executable_for_cloud = "./" + str(executable_for_cloud)

benchmark.executable = str(executable_for_cloud)

else:
Expand Down

0 comments on commit fe51d28

Please sign in to comment.