dotnet-installer/test
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
..
ArgumentForwardingTests Merge remote-tracking branch 'dotnet/release/15.5' into merges/release/15.5-to-master-20171206-080040 2017-12-07 09:55:12 -08:00
ArgumentsReflector Merge remote-tracking branch 'dotnet/release/15.5' into merges/release/15.5-to-master-20171206-080040 2017-12-07 09:55:12 -08:00
binding-redirects.Tests Merge remote-tracking branch 'dotnet/release/15.5' into merges/release/15.5-to-master-20171206-080040 2017-12-07 09:55:12 -08:00
crossgen.Tests Merge remote-tracking branch 'dotnet/release/15.5' into merges/release/15.5-to-master-20171206-080040 2017-12-07 09:55:12 -08:00
dotnet-add-package.Tests Merge remote-tracking branch 'dotnet/release/15.5' into merges/release/15.5-to-master-20171206-080040 2017-12-07 09:55:12 -08:00
dotnet-add-reference.Tests Add support for accepting directories to add and remove reference commands. 2017-12-07 17:23:31 -08:00
dotnet-back-compat.Tests Merge remote-tracking branch 'dotnet/release/15.5' into merges/release/15.5-to-master-20171206-080040 2017-12-07 09:55:12 -08:00
dotnet-build.Tests Adds Microsoft.Docker.Sdk to CLI 2018-01-17 11:12:19 -08:00
dotnet-clean.Tests Merge remote-tracking branch 'dotnet/release/15.5' into merges/release/15.5-to-master-20171206-080040 2017-12-07 09:55:12 -08:00
dotnet-help.Tests Rename buildserver command. 2018-04-17 17:04:12 -07:00
dotnet-install-tool.Tests Change command order for tools (#8862) 2018-03-21 19:12:32 -07:00
dotnet-list-reference.Tests Change command order for tools (#8862) 2018-03-21 19:12:32 -07:00
dotnet-migrate.Tests Fix project type GUIDs when adding projects to solution files. 2018-03-22 21:32:39 -07:00
dotnet-msbuild.Tests Implement dotnet publish --no-build 2018-04-04 15:03:29 -07:00
dotnet-new.Tests Re-activate templating test. 2018-03-12 13:16:45 -07:00
dotnet-nuget.UnitTests Merge remote-tracking branch 'dotnet/release/15.5' into merges/release/15.5-to-master-20171206-080040 2017-12-07 09:55:12 -08:00
dotnet-pack.Tests Merge remote-tracking branch 'dotnet/release/15.5' into merges/release/15.5-to-master-20171206-080040 2017-12-07 09:55:12 -08:00
dotnet-publish.Tests Add test cases per PR feedback 2018-04-05 17:58:38 -07:00
dotnet-remove-package.Tests Merge remote-tracking branch 'dotnet/release/15.5' into merges/release/15.5-to-master-20171206-080040 2017-12-07 09:55:12 -08:00
dotnet-remove-reference.Tests Add support for accepting directories to add and remove reference commands. 2017-12-07 17:23:31 -08:00
dotnet-restore.Tests Merge remote-tracking branch 'dotnet/release/15.5' into merges/release/15.5-to-master-20171206-080040 2017-12-07 09:55:12 -08:00
dotnet-run.Tests Try shorter test names 2018-03-23 10:30:47 -07:00
dotnet-sln-add.Tests Fix project type GUIDs when adding projects to solution files. 2018-03-22 21:32:39 -07:00
dotnet-sln-list.Tests Merge remote-tracking branch 'dotnet/release/15.5' into merges/release/15.5-to-master-20171206-080040 2017-12-07 09:55:12 -08:00
dotnet-sln-remove.Tests Write UTF-8 BOM for solution files. 2017-12-08 14:34:26 -08:00
dotnet-store.Tests Merge remote-tracking branch 'dotnet/release/15.5' into merges/release/15.5-to-master-20171206-080040 2017-12-07 09:55:12 -08:00
dotnet-test.Tests Merge remote-tracking branch 'dotnet/release/15.5' into merges/release/15.5-to-master-20171206-080040 2017-12-07 09:55:12 -08:00
dotnet-vstest.Tests Merge remote-tracking branch 'dotnet/release/15.5' into merges/release/15.5-to-master-20171206-080040 2017-12-07 09:55:12 -08:00
dotnet.Tests Fix Razor server shutdown on Windows. 2018-04-27 13:52:17 -07:00
EndToEnd Add bundled aspnetcore runtime framework versions 2018-04-23 00:33:33 -07:00
InsertionTests bundled DotnetTool (#8606) 2018-02-16 13:32:29 -08:00
Installer Move some projects to netstandard2.0 (#8692) 2018-02-27 13:59:59 -08:00
Microsoft.DotNet.Cli.Sln.Internal.Tests Merge remote-tracking branch 'dotnet/release/15.5' into merges/release/15.5-to-master-20171206-080040 2017-12-07 09:55:12 -08:00
Microsoft.DotNet.Cli.Utils.Tests Add TryGetMostFitRuntimeIdentifier (#8997) 2018-04-06 17:39:58 -07:00
Microsoft.DotNet.Configurer.UnitTests consume bring your own shim(byos) (#9018) 2018-04-10 15:42:50 -07:00
Microsoft.DotNet.MSBuildSdkResolver.Tests Replace alpine with linux-musl builds 2018-04-20 13:23:00 -07:00
Microsoft.DotNet.ShellShim.Tests consume bring your own shim(byos) (#9018) 2018-04-10 15:42:50 -07:00
Microsoft.DotNet.TestFramework Move some projects to netstandard2.0 (#8692) 2018-02-27 13:59:59 -08:00
Microsoft.DotNet.ToolPackage.Tests Unblock build 2018-04-20 16:43:41 -07:00
Microsoft.DotNet.Tools.Tests.ComponentMocks consume bring your own shim(byos) (#9018) 2018-04-10 15:42:50 -07:00
Microsoft.DotNet.Tools.Tests.Utilities Fix Razor server shutdown on Windows. 2018-04-27 13:52:17 -07:00
msbuild.IntegrationTests Make the default verbosity for dotnet clean normal. This way we can get some meaningful output out of the command. 2018-03-01 14:09:06 -08:00
Msbuild.Tests.Utilities Merge remote-tracking branch 'dotnet/release/15.5' into merges/release/15.5-to-master-20171206-080040 2017-12-07 09:55:12 -08:00
MsBuildScript.Tests Fixing the URLs for the msbuildscript.tests to use the new asp.net runtime folder as well. 2018-02-15 12:58:21 -08:00
Directory.Build.props Support new artifacts layout in tests and other build logic 2017-08-24 15:49:13 -07:00
Microsoft.DotNet.Cli.Tests.sln bundled DotnetTool (#8606) 2018-02-16 13:32:29 -08:00