mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-19 04:59:35 -07:00
fixed router test for linux.
This commit is contained in:
parent
bedbfc6c92
commit
923f34e905
2 changed files with 9 additions and 2 deletions
|
@ -10,6 +10,13 @@ namespace NzbDrone.App.Test
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class RouterTest : TestBase<Router>
|
public class RouterTest : TestBase<Router>
|
||||||
{
|
{
|
||||||
|
[SetUp]
|
||||||
|
public void Setup()
|
||||||
|
{
|
||||||
|
WindowsOnly();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void Route_should_call_install_service_when_application_mode_is_install()
|
public void Route_should_call_install_service_when_application_mode_is_install()
|
||||||
{
|
{
|
||||||
|
|
|
@ -110,12 +110,12 @@ namespace NzbDrone
|
||||||
return ApplicationModes.Help;
|
return ApplicationModes.Help;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (_startupArguments.Flags.Contains(StartupArguments.INSTALL_SERVICE))
|
if (!OsInfo.IsLinux && _startupArguments.Flags.Contains(StartupArguments.INSTALL_SERVICE))
|
||||||
{
|
{
|
||||||
return ApplicationModes.InstallService;
|
return ApplicationModes.InstallService;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (_startupArguments.Flags.Contains(StartupArguments.UNINSTALL_SERVICE))
|
if (!OsInfo.IsLinux && _startupArguments.Flags.Contains(StartupArguments.UNINSTALL_SERVICE))
|
||||||
{
|
{
|
||||||
return ApplicationModes.UninstallService;
|
return ApplicationModes.UninstallService;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue