mirror of
https://github.com/actions/runner.git
synced 2025-12-12 15:13:30 +00:00
Another runner code cleanup round (#197)
* Remove remaining non-SDK references of capabilities/demands * Remove unused Runner.Common constants * Remove more variables * Clean up RU link, and named-pipe support * Remove NotificationSocketAddress * Re-add legacy OnPremises JobDispatcher code (commented out) * More misc cleanup
This commit is contained in:
@@ -68,13 +68,6 @@ namespace GitHub.Runner.Common.Tests
|
||||
_term.Silent = true;
|
||||
SetSingleton<ITerminal>(_term);
|
||||
EnqueueInstance<ITerminal>(_term);
|
||||
|
||||
#if !OS_WINDOWS
|
||||
string eulaFile = Path.Combine(GetDirectory(WellKnownDirectory.Externals), Constants.Path.TeeDirectory, "license.html");
|
||||
Directory.CreateDirectory(GetDirectory(WellKnownDirectory.Externals));
|
||||
Directory.CreateDirectory(Path.Combine(GetDirectory(WellKnownDirectory.Externals), Constants.Path.TeeDirectory));
|
||||
File.WriteAllText(eulaFile, "testeulafile");
|
||||
#endif
|
||||
}
|
||||
|
||||
public CultureInfo DefaultCulture { get; private set; }
|
||||
@@ -204,7 +197,8 @@ namespace GitHub.Runner.Common.Tests
|
||||
break;
|
||||
|
||||
case WellKnownDirectory.Tools:
|
||||
path = Environment.GetEnvironmentVariable("AGENT_TOOLSDIRECTORY") ?? Environment.GetEnvironmentVariable(Constants.Variables.Agent.ToolsDirectory);
|
||||
path = Environment.GetEnvironmentVariable("RUNNER_TOOL_CACHE");
|
||||
|
||||
if (string.IsNullOrEmpty(path))
|
||||
{
|
||||
path = Path.Combine(
|
||||
|
||||
Reference in New Issue
Block a user