2
0
mirror of synced 2025-01-14 10:34:26 +00:00

31 lines
767 B
C#
Raw Permalink Normal View History

2023-09-20 10:51:47 +02:00
using Logging;
namespace DistTestCore.Logs
2023-04-14 14:53:39 +02:00
{
2023-09-12 11:25:04 +02:00
public class FixtureLog : BaseTestLog
2023-04-14 14:53:39 +02:00
{
private readonly string fullName;
private readonly string deployId;
2023-04-14 14:53:39 +02:00
public FixtureLog(LogConfig config, DateTime start, string deployId, string name = "") : base(deployId)
2023-04-14 14:53:39 +02:00
{
this.deployId = deployId;
2023-07-18 09:02:41 +02:00
fullName = NameUtils.GetFixtureFullName(config, start, name);
2023-04-14 14:53:39 +02:00
}
public TestLog CreateTestLog(string name = "")
2023-04-14 14:53:39 +02:00
{
return new TestLog(fullName, deployId, name);
2023-04-14 14:53:39 +02:00
}
public void DeleteFolder()
{
Directory.Delete(fullName, true);
}
2023-06-28 15:11:20 +02:00
protected override string GetFullName()
2023-04-14 14:53:39 +02:00
{
2023-06-28 15:11:20 +02:00
return fullName;
2023-04-14 14:53:39 +02:00
}
}
}