Skip to content

Commit

Permalink
cd into the tool directory in case tools makes calls relative to itself
Browse files Browse the repository at this point in the history
  • Loading branch information
ricffb committed Dec 4, 2024
1 parent 6252252 commit dab9a0d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion contrib/vcloud/benchmarkclient_executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ def init(config, benchmark):
tool_locator = benchexec.tooladapter.create_tool_locator(config)

benchmark.executable = benchmark.tool.executable(tool_locator)

benchmark.tool_version = benchmark.tool.version(benchmark.executable)
environment = benchmark.environment()
if environment.get("keepEnv", None) or environment.get("additionalEnv", None):
Expand Down
2 changes: 1 addition & 1 deletion contrib/vcloud/podman_containerized_tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ def _init_container(
"Failed to join namespace %s: %s", namespace, os.strerror(e.errno)
)

os.chdir("/mnt")
os.chdir(TOOL_DIRECTORY_MOUNT_POINT)
return container_id

except OSError as e:
Expand Down

0 comments on commit dab9a0d

Please sign in to comment.