Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
attempt to fix reinit logic for tool
  • Loading branch information
martinothamar committed Mar 31, 2024
commit ad3a9e5785d5a169a4bc529005c988f9d9c9d71e
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ public void Handle(HostSignal signal, DiagnoserActionParameters parameters)
{
var logger = parameters.Config.GetCompositeLogger();
var job = parameters.BenchmarkCase.Job;
if (tool is null)
bool isInProcess = job.GetToolchain().IsInProcess;
if (tool is null || (isInProcess ? tool is ExternalDotMemoryTool : tool is InProcessDotMemoryTool))
{
bool isInProcess = job.GetToolchain().IsInProcess;
tool ??= isInProcess
tool = isInProcess
? new InProcessDotMemoryTool(logger, nugetUrl, downloadTo: toolsDownloadFolder)
: new ExternalDotMemoryTool(logger, nugetUrl, downloadTo: toolsDownloadFolder);
}
Expand Down