From c023a76b4fcb525148c4c8f007faa916b993fd1a Mon Sep 17 00:00:00 2001 From: Henrik Wachowitz Date: Sun, 22 Dec 2024 15:19:06 +0100 Subject: [PATCH] add "./" to executable paths not containing a directory --- contrib/vcloud/benchmarkclient_executor.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/contrib/vcloud/benchmarkclient_executor.py b/contrib/vcloud/benchmarkclient_executor.py index 6819265a8..1ae383dc9 100644 --- a/contrib/vcloud/benchmarkclient_executor.py +++ b/contrib/vcloud/benchmarkclient_executor.py @@ -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: