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:
Julio Barba
2019-12-09 17:54:41 -05:00
committed by GitHub
parent 3ed80b7c10
commit 275ab753a1
16 changed files with 583 additions and 859 deletions

View File

@@ -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)