Fix container and free space tests on mono (#704)

* Fix disk provider tests

* Fix container test on linux
This commit is contained in:
ta264 2019-03-27 19:51:56 +00:00 committed by GitHub
parent 038deb0e8d
commit 054d1600a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 1 deletions

View File

@ -8,6 +8,13 @@ namespace NzbDrone.Mono.Test.DiskProviderTests
[Platform("Mono")]
public class FreeSpaceFixture : FreeSpaceFixtureBase<DiskProvider>
{
[SetUp]
public void Setup()
{
Mocker.SetConstant<ISymbolicLinkResolver>(Mocker.Resolve<SymbolicLinkResolver>());
Mocker.SetConstant<IProcMountProvider>(Mocker.Resolve<ProcMountProvider>());
}
public FreeSpaceFixture()
{
MonoOnly();

View File

@ -38,7 +38,7 @@ if [ "$PLATFORM" = "Windows" ]; then
mkdir -p "$ProgramData/Lidarr"
WHERE="$WHERE && cat != LINUX"
elif [ "$PLATFORM" = "Linux" ] || [ "$PLATFORM" = "Mac" ] ; then
mkdir -p "~/.config/Lidarr"
mkdir -p ~/.config/Lidarr
WHERE="$WHERE && cat != WINDOWS"
NUNIT_COMMAND="mono --debug --runtime=v4.0 $NUNIT"
else