mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
improved Linux support for tests.
This commit is contained in:
@@ -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()
|
||||
|
Reference in New Issue
Block a user