Skip to content

Commit

Permalink
Merge branch 'Roemer-bugfix/GH2468-DotNetVerbosity' into develop
Browse files Browse the repository at this point in the history
* Roemer-bugfix/GH2468-DotNetVerbosity:
  (GH-2468) Convert the DotNetCoreVerbosity to lowercase
  • Loading branch information
devlead committed Feb 20, 2019
2 parents cb90c04 + 328a191 commit e584a5a
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public void Should_Add_Additional_Arguments()
var result = fixture.Run();

// Then
Assert.Equal("build \"./src/*\" --runtime runtime1 --framework net451 --configuration Release --version-suffix rc1 --verbosity Minimal", result.Args);
Assert.Equal("build \"./src/*\" --runtime runtime1 --framework net451 --configuration Release --version-suffix rc1 --verbosity minimal", result.Args);
}

[Fact]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ public void Should_Add_Settings()
var result = fixture.Run();

// Then
Assert.Equal("pack --output \"/Working/artifacts\" --no-build --no-dependencies --no-restore --include-symbols --include-source --configuration Release --version-suffix rc1 --serviceable --verbosity Minimal", result.Args);
Assert.Equal("pack --output \"/Working/artifacts\" --no-build --no-dependencies --no-restore --include-symbols --include-source --configuration Release --version-suffix rc1 --serviceable --verbosity minimal", result.Args);
}

[Fact]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ public void Should_Add_Settings()
var result = fixture.Run();

// Then
Assert.Equal("publish --output \"/Working/artifacts\" --runtime runtime1 --framework dnxcore50 --configuration Release --version-suffix rc1 --no-build --no-dependencies --no-restore --force --self-contained true --source \"https://api.nuget.org/v3/index.json\" --verbosity Minimal", result.Args);
Assert.Equal("publish --output \"/Working/artifacts\" --runtime runtime1 --framework dnxcore50 --configuration Release --version-suffix rc1 --no-build --no-dependencies --no-restore --force --self-contained true --source \"https://api.nuget.org/v3/index.json\" --verbosity minimal", result.Args);
}

[Fact]
Expand All @@ -146,7 +146,7 @@ public void Should_Add_SelfContained_False_Settings()
var result = fixture.Run();

// Then
Assert.Equal("publish --output \"/Working/artifacts\" --runtime runtime1 --framework dnxcore50 --configuration Release --version-suffix rc1 --no-dependencies --no-restore --force --self-contained false --source \"https://api.nuget.org/v3/index.json\" --verbosity Minimal", result.Args);
Assert.Equal("publish --output \"/Working/artifacts\" --runtime runtime1 --framework dnxcore50 --configuration Release --version-suffix rc1 --no-dependencies --no-restore --force --self-contained false --source \"https://api.nuget.org/v3/index.json\" --verbosity minimal", result.Args);
}

[Fact]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ public void Should_Add_Settings()
" --source \"https://www.example.com/source2\"" +
" --configfile \"/Working/NuGet.config\"" +
" --no-cache --disable-parallel --ignore-failed-sources --no-dependencies --force" +
" --verbosity Minimal", result.Args);
" --verbosity minimal", result.Args);
}

[Fact]
Expand Down
2 changes: 1 addition & 1 deletion src/Cake.Common/Tools/DotNetCore/DotNetCoreTool.cs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ private ProcessArgumentBuilder AppendCommonArguments(ProcessArgumentBuilder buil
if (settings.Verbosity.HasValue)
{
builder.Append("--verbosity");
builder.Append(settings.Verbosity.ToString());
builder.Append(settings.Verbosity.ToString().ToLower());
}

return builder;
Expand Down

0 comments on commit e584a5a

Please sign in to comment.