mirror of
https://github.com/actions/runner.git
synced 2025-12-12 15:13:30 +00:00
Runner cleanup - continuation (#209)
* Agent/AgentCredential -> Runner/RunnerCredential * Test trait rename: Agent -> Runner * Enable remaining RunnerL0 tests * Remove job message PII variable masking code * Remove unused Agent.ToolsDirectory variable * Misc test Agent -> Runner renaming * Some more misc cleaning
This commit is contained in:
@@ -22,7 +22,7 @@ namespace GitHub.Runner.Common.Tests
|
||||
private readonly ITraceManager _traceManager;
|
||||
private readonly Terminal _term;
|
||||
private readonly SecretMasker _secretMasker;
|
||||
private CancellationTokenSource _agentShutdownTokenSource = new CancellationTokenSource();
|
||||
private CancellationTokenSource _runnerShutdownTokenSource = new CancellationTokenSource();
|
||||
private string _suiteName;
|
||||
private string _testName;
|
||||
private Tracing _trace;
|
||||
@@ -30,7 +30,7 @@ namespace GitHub.Runner.Common.Tests
|
||||
private string _tempDirectoryRoot = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString("D"));
|
||||
private StartupType _startupType;
|
||||
public event EventHandler Unloading;
|
||||
public CancellationToken RunnerShutdownToken => _agentShutdownTokenSource.Token;
|
||||
public CancellationToken RunnerShutdownToken => _runnerShutdownTokenSource.Token;
|
||||
public ShutdownReason RunnerShutdownReason { get; private set; }
|
||||
public ISecretMasker SecretMasker => _secretMasker;
|
||||
public TestHostContext(object testClass, [CallerMemberName] string testName = "")
|
||||
@@ -306,7 +306,7 @@ namespace GitHub.Runner.Common.Tests
|
||||
{
|
||||
ArgUtil.NotNull(reason, nameof(reason));
|
||||
RunnerShutdownReason = reason;
|
||||
_agentShutdownTokenSource.Cancel();
|
||||
_runnerShutdownTokenSource.Cancel();
|
||||
}
|
||||
|
||||
public void WritePerfCounter(string counter)
|
||||
|
||||
Reference in New Issue
Block a user