ec0f7a6790
This PR removes the notion of a run id and replaces it with a deploy id in continuous tests. Deploy ids can be set at deploy time only (duh), and will be picked up by the test runner from the deploy file on subsequent runs of the continuous test runner. As a consequence, the deploy id becomes a deployer parameter, and can no longer be overridden at the runner. For non-continuous tests, the deploy ID is created on-the-fly.
31 lines
767 B
C#
31 lines
767 B
C#
using Logging;
|
|
|
|
namespace DistTestCore.Logs
|
|
{
|
|
public class FixtureLog : BaseTestLog
|
|
{
|
|
private readonly string fullName;
|
|
private readonly string deployId;
|
|
|
|
public FixtureLog(LogConfig config, DateTime start, string deployId, string name = "") : base(deployId)
|
|
{
|
|
this.deployId = deployId;
|
|
fullName = NameUtils.GetFixtureFullName(config, start, name);
|
|
}
|
|
|
|
public TestLog CreateTestLog(string name = "")
|
|
{
|
|
return new TestLog(fullName, deployId, name);
|
|
}
|
|
|
|
public void DeleteFolder()
|
|
{
|
|
Directory.Delete(fullName, true);
|
|
}
|
|
|
|
protected override string GetFullName()
|
|
{
|
|
return fullName;
|
|
}
|
|
}
|
|
} |