We have a few tests that write their own NuGet.Config file to use during restore. Those tests need access to the ExternalRestoreSources value to be added to this NuGet config so that they can restore properly. This change writes a file in the test/artifacts folder containing the value of ExternalRestoreSources value. The tests can then use it to write that to their NuGet.Config. There is a failure in ProdCon that this addresses.
This commit is contained in:
parent
8aa75cf28e
commit
7bb693bff5
5 changed files with 51 additions and 4 deletions
|
@ -22,6 +22,7 @@ namespace Microsoft.DotNet.Tools.Test.Utilities
|
|||
private string _stage2WithBackwardsCompatibleRuntimesDirectory;
|
||||
private string _testPackages;
|
||||
private string _testWorkingFolder;
|
||||
private string _testArtifactsFolder;
|
||||
|
||||
public static string RepoRoot
|
||||
{
|
||||
|
@ -92,6 +93,7 @@ namespace Microsoft.DotNet.Tools.Test.Utilities
|
|||
public string Stage2WithBackwardsCompatibleRuntimesDirectory => _stage2WithBackwardsCompatibleRuntimesDirectory;
|
||||
public string TestPackages => _testPackages;
|
||||
public string TestWorkingFolder => _testWorkingFolder;
|
||||
public string TestArtifactsFolder => _testArtifactsFolder;
|
||||
|
||||
public RepoDirectoriesProvider(
|
||||
string artifacts = null,
|
||||
|
@ -123,6 +125,8 @@ namespace Microsoft.DotNet.Tools.Test.Utilities
|
|||
_testPackages = Path.Combine(_artifacts, "test", "packages");
|
||||
}
|
||||
|
||||
_testArtifactsFolder = Path.Combine(_artifacts, "test", "artifacts");
|
||||
|
||||
_testWorkingFolder = Path.Combine(RepoRoot,
|
||||
"bin",
|
||||
(previousStage + 1).ToString(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue