required changes for content benchmarks (#3327)

This commit is contained in:
Paul Ritter
2022-10-11 20:16:09 +02:00
committed by GitHub
parent 4c2da94a58
commit b8397a1a27
2 changed files with 6 additions and 2 deletions

View File

@@ -9,6 +9,8 @@ namespace Robust.Shared;
internal static class ProgramShared
{
public static string PathOffset = "";
public static void RunExecCommands(IConsoleHost consoleHost, IReadOnlyList<string>? commands)
{
if (commands == null)
@@ -23,12 +25,12 @@ internal static class ProgramShared
#if !FULL_RELEASE
private static string FindContentRootDir(bool contentStart)
{
return contentStart ? "../../" : "../../../";
return PathOffset + (contentStart ? "../../" : "../../../");
}
private static string FindEngineRootDir(bool contentStart)
{
return contentStart ? "../../RobustToolbox/" : "../../";
return PathOffset + (contentStart ? "../../RobustToolbox/" : "../../");
}
#endif

View File

@@ -250,6 +250,8 @@ namespace Robust.UnitTesting
private bool _isAlive = true;
private Exception? _unhandledException;
public IDependencyCollection InstanceDependencyCollection => DependencyCollection;
public virtual IntegrationOptions? Options { get; internal set; }
/// <summary>