Updating the Microsoft.Net.Sdk & Microsoft.Net.Sdk.Web versions (#4585)

* Updating the Microsoft.Net.Sdk & Microsoft.Net.Sdk.Web versions

* Fixed merge conflicts. Had to re-update the Sdk version in one place.

* re-migrate dotnet.dll

* Revert Performance Test Projects

* Fix test test

* Add missing WithRuntime

* Disable failing test test
This commit is contained in:
seancpeters 2016-11-03 22:12:33 -07:00 committed by Piotr Puszkiewicz
parent 51cb0ab4d5
commit 40c34f891a
48 changed files with 107 additions and 89 deletions

View file

@ -7,20 +7,39 @@ namespace Microsoft.DotNet.Tools.Test.Utilities
{
public class DotnetTestCommand : TestCommand
{
private string _runtime;
public DotnetTestCommand() : base("dotnet")
{
}
public override CommandResult Execute(string args = "")
{
args = $"test {args}";
args = $"test {GetRuntime()} {args}";
return base.Execute(args);
}
public override CommandResult ExecuteWithCapturedOutput(string args = "")
{
args = $"test {args}";
args = $"test {GetRuntime()} {args}";
return base.ExecuteWithCapturedOutput(args);
}
public DotnetTestCommand WithRuntime(string runtime)
{
_runtime = runtime;
return this;
}
private string GetRuntime()
{
if (_runtime == null)
{
return null;
}
return $"/p:RuntimeIdentifier={_runtime}";
}
}
}