1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-04 10:02:40 +01:00

fixed router test for linux.

This commit is contained in:
Keivan Beigi 2013-07-26 18:25:45 -07:00
parent bedbfc6c92
commit 923f34e905
2 changed files with 9 additions and 2 deletions

View File

@ -10,6 +10,13 @@ namespace NzbDrone.App.Test
[TestFixture]
public class RouterTest : TestBase<Router>
{
[SetUp]
public void Setup()
{
WindowsOnly();
}
[Test]
public void Route_should_call_install_service_when_application_mode_is_install()
{

View File

@ -110,12 +110,12 @@ private ApplicationModes GetApplicationMode()
return ApplicationModes.Help;
}
if (_startupArguments.Flags.Contains(StartupArguments.INSTALL_SERVICE))
if (!OsInfo.IsLinux && _startupArguments.Flags.Contains(StartupArguments.INSTALL_SERVICE))
{
return ApplicationModes.InstallService;
}
if (_startupArguments.Flags.Contains(StartupArguments.UNINSTALL_SERVICE))
if (!OsInfo.IsLinux && _startupArguments.Flags.Contains(StartupArguments.UNINSTALL_SERVICE))
{
return ApplicationModes.UninstallService;
}