dotnet-installer/test/dotnet.Tests/CommandTests
Peter Huene b2b3947c68
Fix Razor server shutdown on Windows.
On Windows, the Razor server correctly creates the pid file with
`FileAccess.Write` and `FileOptions.DeleteOnClose`.  This requires a share mode
of `FileShare.Write | FileShare.Delete` to open.  However, the
`dotnet build-server shutdown` command was opening the file with
`FileShare.Read`.  As a result, an `IOException` was being thrown and was not
handled.

This change first opens the file with the appropriate share access and also
properly handles a failure to access or read the contents of the pid file.

Additionally, an integration test was added to test that Razor server shutdown
works as expected.

Fixes #9158.
2018-04-27 13:52:17 -07:00
..
BuildServerShutdownCommandTests.cs Fix Razor server shutdown on Windows. 2018-04-27 13:52:17 -07:00
ToolInstallCommandTests.cs Error message has instruction to help investigate from NuGet error message 2018-04-16 21:42:50 -07:00
ToolListCommandTests.cs Fix validation of tool-path option for tool list and uninstall commands. 2018-04-03 16:02:14 -07:00
ToolUninstallCommandTests.cs consume bring your own shim(byos) (#9018) 2018-04-10 15:42:50 -07:00
ToolUpdateCommandTests.cs consume bring your own shim(byos) (#9018) 2018-04-10 15:42:50 -07:00