mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-16 10:03:51 -07:00
improved Linux support for tests.
This commit is contained in:
parent
660185640d
commit
3162e4864d
20 changed files with 178 additions and 149 deletions
|
@ -34,6 +34,7 @@ namespace NzbDrone.Test.Common
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public abstract class TestBase : LoggingTest
|
||||
|
@ -101,6 +102,20 @@ namespace NzbDrone.Test.Common
|
|||
catch (Exception)
|
||||
{
|
||||
}
|
||||
|
||||
if (TestContext.CurrentContext.Result.Status == TestStatus.Failed)
|
||||
{
|
||||
var testName = TestContext.CurrentContext.Test.Name.ToLower();
|
||||
|
||||
if (EnvironmentProvider.IsLinux && testName.Contains("windows"))
|
||||
{
|
||||
throw new IgnoreException("windows specific test");
|
||||
}
|
||||
else if (testName.Contains("linux"))
|
||||
{
|
||||
throw new IgnoreException("linux specific test");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
protected void WithTempAsAppPath()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue