16 references to EnvironmentVariables
Aspire.Workload.Tests (16)
tests\Shared\WorkloadTesting\BuildEnvironment.cs (14)
108
BuiltNuGetsPath = Path.Combine(RepoRoot.FullName, "artifacts", "packages",
EnvironmentVariables
.BuildConfiguration, "Shipping");
115
if (string.IsNullOrEmpty(
EnvironmentVariables
.SdkForWorkloadTestingPath))
120
string? baseDir = Path.GetDirectoryName(
EnvironmentVariables
.SdkForWorkloadTestingPath);
128
if (string.IsNullOrEmpty(
EnvironmentVariables
.BuiltNuGetsPath) || !Directory.Exists(
EnvironmentVariables
.BuiltNuGetsPath))
130
throw new ArgumentException($"Cannot find 'BUILT_NUGETS_PATH={
EnvironmentVariables
.BuiltNuGetsPath}' or {BuiltNuGetsPath}");
132
BuiltNuGetsPath =
EnvironmentVariables
.BuiltNuGetsPath;
171
if (!string.IsNullOrEmpty(
EnvironmentVariables
.TestLogPath))
173
LogRootPath = Path.GetFullPath(
EnvironmentVariables
.TestLogPath);
191
if (
EnvironmentVariables
.IsRunningOnCI)
226
catch (IOException) when (!
EnvironmentVariables
.IsRunningOnCI)
266
=>
EnvironmentVariables
.DefaultTFMForTesting?.ToLowerInvariant() switch
270
_ => throw new ArgumentOutOfRangeException(nameof(
EnvironmentVariables
.DefaultTFMForTesting),
EnvironmentVariables
.DefaultTFMForTesting, "Invalid value")
tests\Shared\WorkloadTesting\TestOutputWrapper.cs (2)
17
if (forceShowBuildOutput ||
EnvironmentVariables
.ShowBuildOutput)
27
if (forceShowBuildOutput ||
EnvironmentVariables
.ShowBuildOutput)