Add PJ support to TestAssets (#5109)

* Add PJ support to TestAssets

* Cleaning the test assets is hard, so throwing instead

* better assets filter

* PR feedback

* PR Feedback

* Fix NullRef

* Move lock to surround action + file read/write
This commit is contained in:
Piotr Puszkiewicz 2017-01-06 01:40:26 -08:00 committed by GitHub
parent 839bc2394e
commit bf4588b6fc
9 changed files with 327 additions and 63 deletions

View file

@ -53,7 +53,10 @@ namespace Microsoft.DotNet.Tools.Test.Utilities
{
var assetsRoot = Path.Combine(RepoRoot, "TestAssets");
s_testAssets = new TestAssets(new DirectoryInfo(assetsRoot));
s_testAssets = new TestAssets(
new DirectoryInfo(assetsRoot),
new FileInfo(new EnvironmentProvider().GetCommandPath("dotnet")),
new FileInfo(new RepoDirectoriesProvider().PjDotnet));
}
return s_testAssets;