Handle benchmark path without ConfigurationManager

- Set ForceDriver directly when ConfigurationManager is not enabled
- Ensures benchmarks work correctly with --driver option

Co-authored-by: tig <585482+tig@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-11-15 16:43:59 +00:00
parent 12d58cc082
commit 560f56bc77

View File

@@ -468,6 +468,12 @@ public class UICatalog
scenario.StartBenchmark ();
}
// For benchmarking without ConfigurationManager, set ForceDriver directly
if (!ConfigurationManager.IsEnabled && !string.IsNullOrEmpty (_forceDriver))
{
Application.ForceDriver = _forceDriver;
}
scenario.Main ();
BenchmarkResults? results = null;