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

* Fix disk provider tests

* Fix container test on linux
pull/710/head
ta264 6 years ago committed by GitHub
parent 038deb0e8d
commit 054d1600a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

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

Loading…
Cancel
Save