Infer test packages path in tests if TEST_PACKAGES environment variable isn't set

This commit is contained in:
Daniel Plaisted 2018-03-30 11:35:19 -07:00
parent 42e45e13a7
commit a9742686ed

View file

@ -117,7 +117,7 @@ namespace Microsoft.DotNet.Tools.Test.Utilities
_testPackages = Environment.GetEnvironmentVariable("TEST_PACKAGES");
if (string.IsNullOrEmpty(_testPackages))
{
throw new InvalidOperationException("TEST_PACKAGES environment variable not set");
_testPackages = Path.Combine(_artifacts, "test", "packages");
}
_testWorkingFolder = Path.Combine(RepoRoot,