Skip to content
This repository was archived by the owner on Apr 20, 2023. It is now read-only.

Commit a974268

Browse files
committed
Infer test packages path in tests if TEST_PACKAGES environment variable isn't set
1 parent 42e45e1 commit a974268

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/Microsoft.DotNet.Tools.Tests.Utilities/RepoDirectoriesProvider.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ public RepoDirectoriesProvider(
117117
_testPackages = Environment.GetEnvironmentVariable("TEST_PACKAGES");
118118
if (string.IsNullOrEmpty(_testPackages))
119119
{
120-
throw new InvalidOperationException("TEST_PACKAGES environment variable not set");
120+
_testPackages = Path.Combine(_artifacts, "test", "packages");
121121
}
122122

123123
_testWorkingFolder = Path.Combine(RepoRoot,

0 commit comments

Comments
 (0)