16 references to EnvironmentVariables
Aspire.Workload.Tests (16)
tests\Shared\WorkloadTesting\BuildEnvironment.cs (14)
109
BuiltNuGetsPath = Path.Combine(RepoRoot.FullName, "artifacts", "packages",
EnvironmentVariables
.BuildConfiguration, "Shipping");
116
if (string.IsNullOrEmpty(
EnvironmentVariables
.SdkForWorkloadTestingPath))
121
string? baseDir = Path.GetDirectoryName(
EnvironmentVariables
.SdkForWorkloadTestingPath);
129
if (string.IsNullOrEmpty(
EnvironmentVariables
.BuiltNuGetsPath) || !Directory.Exists(
EnvironmentVariables
.BuiltNuGetsPath))
131
throw new ArgumentException($"Cannot find 'BUILT_NUGETS_PATH={
EnvironmentVariables
.BuiltNuGetsPath}' or {BuiltNuGetsPath}");
133
BuiltNuGetsPath =
EnvironmentVariables
.BuiltNuGetsPath;
172
if (!string.IsNullOrEmpty(
EnvironmentVariables
.TestLogPath))
174
LogRootPath = Path.GetFullPath(
EnvironmentVariables
.TestLogPath);
192
if (
EnvironmentVariables
.IsRunningOnCI)
227
catch (IOException) when (!
EnvironmentVariables
.IsRunningOnCI)
267
=>
EnvironmentVariables
.DefaultTFMForTesting?.ToLowerInvariant() switch
271
_ => 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)