fixed router test for linux.

pull/4/head
Keivan Beigi 11 years ago
parent bedbfc6c92
commit 923f34e905

@ -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()
{

@ -110,12 +110,12 @@ namespace NzbDrone
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;
}

Loading…
Cancel
Save