Skip to content

Reenable workload manifest test #26624

Open
@gkulin

Description

@gkulin

Disabling a workload test that is blocking #26369 from being merged.

ItErrorUsingSkipManifestAndRollback

The test seems to pass locally but on: Darwin_Dawin Build_Release_11, Windows_NT_FullFramework_Windows_NT_FullFramework Build_Release_14, Windows_NT_FullFramework_Windows_NT_FullFramework Build_Debug_14, and Ubunu_20_04_Ubuntu_20_04 Build_Release_11 the test fails because the output contains "Workload ID wasm-tools is not recognized." instead of the expected error for combining --skip-manifest-update and --from-rollback-file

Windows error message:

The command error output did not contain expected result: Cannot use the skip-manifest-update and from-rollback-file options together. If installing from a rollback file, remove skip-manifest-update. Otherwise, remove from-rollback-file\r\n\r\nFile Name: D:\a\_work\1\s\artifacts\bin\redist\Release\dotnet\dotnet.exe\r\nArguments: workload install wasm-tools --skip-manifest-update --from-rollback-file foo.txt\r\nExit Code: 1\r\nStdOut:\r\n\r\nStdErr:\r\nWorkload ID wasm-tools is not recognized.\r\n

Stack trace:

at FluentAssertions.Execution.XUnit2TestFramework.Throw(String message)
   at FluentAssertions.Execution.TestFrameworkProvider.Throw(String message)
   at FluentAssertions.Execution.DefaultAssertionStrategy.HandleFailure(String message)
   at FluentAssertions.Execution.AssertionScope.FailWith(String message, Object[] args)
   at Microsoft.NET.TestFramework.Assertions.CommandResultAssertions.HaveStdErrContaining(String pattern) in /_/src/Tests/Microsoft.NET.TestFramework/Assertions/CommandResultAssertions.cs:line 121
   at Microsoft.DotNet.Cli.Workload.Install.Tests.GivenDotnetWorkloadInstall.ItErrorUsingSkipManifestAndRollback() in /_/src/Tests/dotnet-workload-install.Tests/GivenDotnetWorkloadInstall.cs:line 59

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions