File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 2323import benchexec .benchexec # noqa E402
2424import benchexec .model # noqa E402
2525import benchexec .tools # noqa E402
26- from benchexec import __version__ # noqa E402
26+ from benchexec import BenchExecException , __version__ # noqa E402
2727
2828_ROOT_DIR = os .path .abspath (os .path .join (os .path .dirname (__file__ ), "vcloud" ))
2929IVY_JAR_NAME = "ivy-2.5.0.jar"
@@ -85,6 +85,13 @@ def hook_load_tool_info(tool_name, config):
8585 if not config .containerImage :
8686 return original_load_tool_info (tool_name , config )
8787
88+ if not config .tool_directory :
89+ raise BenchExecException (
90+ "Using a container image is currently only supported "
91+ "if the tool directory is explicitly provided. Please set it "
92+ "using the --tool-directory option."
93+ )
94+
8895 tool_module = tool_name if "." in tool_name else f"benchexec.tools.{ tool_name } "
8996
9097 try :
You can’t perform that action at this time.
0 commit comments