mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-19 21:13:28 -07:00
cleaned up test db path for tests.
This commit is contained in:
parent
02c175950b
commit
dde91569ac
15 changed files with 123 additions and 133 deletions
26
NzbDrone.Integration.Test/IntegrationTestDirectoryInfo.cs
Normal file
26
NzbDrone.Integration.Test/IntegrationTestDirectoryInfo.cs
Normal file
|
@ -0,0 +1,26 @@
|
|||
using System;
|
||||
using System.IO;
|
||||
using NzbDrone.Common.EnvironmentInfo;
|
||||
|
||||
namespace NzbDrone.Integration.Test
|
||||
{
|
||||
public class IntegrationTestDirectoryInfo : IAppDirectoryInfo
|
||||
{
|
||||
public IntegrationTestDirectoryInfo()
|
||||
{
|
||||
SystemTemp = Path.GetTempPath();
|
||||
WorkingDirectory = Path.Combine(Directory.GetCurrentDirectory(), "integ_test", DateTime.Now.Ticks.ToString());
|
||||
|
||||
if (!Directory.Exists(WorkingDirectory))
|
||||
{
|
||||
Directory.CreateDirectory(WorkingDirectory);
|
||||
}
|
||||
|
||||
StartUpPath = Directory.GetCurrentDirectory();
|
||||
}
|
||||
|
||||
public string WorkingDirectory { get; private set; }
|
||||
public string SystemTemp { get; private set; }
|
||||
public string StartUpPath { get; private set; }
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue