mirror of https://github.com/lidarr/Lidarr
Fix container and free space tests on mono (#704)
* Fix disk provider tests * Fix container test on linux
This commit is contained in:
parent
038deb0e8d
commit
054d1600a2
|
@ -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();
|
||||
|
|
2
test.sh
2
test.sh
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue