Skip to content

Commit

Permalink
test conditional logic
Browse files Browse the repository at this point in the history
  • Loading branch information
mthalman committed Feb 5, 2025
1 parent 608701c commit 3a31a10
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/Microsoft.DotNet.Docker.Tests/Config.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,10 @@ public static class Config
public static bool IsNightlyRepo { get; } = GetIsNightlyRepo();
public static bool IsRunningInContainer { get; } =
Environment.GetEnvironmentVariable("RUNNING_TESTS_IN_CONTAINER") != null;
public static string RepoPrefix { get; } = Environment.GetEnvironmentVariable("REPO_PREFIX") ?? string.Empty;
public static string RepoPrefix { get; } =
!string.IsNullOrEmpty(Environment.GetEnvironmentVariable("REPO_PREFIX")) ? Environment.GetEnvironmentVariable("REPO_PREFIX") : string.Empty;
public static string Registry { get; } =
Environment.GetEnvironmentVariable("REGISTRY") ?? (string)Manifest.Value["registry"];
!string.IsNullOrEmpty(Environment.GetEnvironmentVariable("REGISTRY")) ? Environment.GetEnvironmentVariable("REGISTRY") : (string)Manifest.Value["registry"];
public static string CacheRegistry { get; } =
Environment.GetEnvironmentVariable("CACHE_REGISTRY") ?? string.Empty;
public static string[] OsNames { get; } =
Expand Down

0 comments on commit 3a31a10

Please sign in to comment.