diff --git a/build.sh b/build.sh old mode 100644 new mode 100755 diff --git a/eng/common/SetupNugetSources.sh b/eng/common/SetupNugetSources.sh old mode 100644 new mode 100755 diff --git a/eng/common/build.sh b/eng/common/build.sh old mode 100644 new mode 100755 diff --git a/eng/common/cibuild.sh b/eng/common/cibuild.sh old mode 100644 new mode 100755 diff --git a/eng/common/darc-init.sh b/eng/common/darc-init.sh old mode 100644 new mode 100755 diff --git a/eng/common/dotnet-install.sh b/eng/common/dotnet-install.sh old mode 100644 new mode 100755 diff --git a/eng/common/generate-sbom-prep.sh b/eng/common/generate-sbom-prep.sh old mode 100644 new mode 100755 diff --git a/eng/common/init-tools-native.sh b/eng/common/init-tools-native.sh old mode 100644 new mode 100755 diff --git a/eng/common/internal-feed-operations.sh b/eng/common/internal-feed-operations.sh old mode 100644 new mode 100755 diff --git a/eng/common/msbuild.sh b/eng/common/msbuild.sh old mode 100644 new mode 100755 diff --git a/eng/common/pipeline-logging-functions.sh b/eng/common/pipeline-logging-functions.sh old mode 100644 new mode 100755 diff --git a/eng/common/tools.sh b/eng/common/tools.sh old mode 100644 new mode 100755 diff --git a/tests/Install-Scripts.Test/GivenThatIWantToInstallDotnetFromAScript.cs b/tests/Install-Scripts.Test/GivenThatIWantToInstallDotnetFromAScript.cs index 8f33027f6d..2838f85993 100644 --- a/tests/Install-Scripts.Test/GivenThatIWantToInstallDotnetFromAScript.cs +++ b/tests/Install-Scripts.Test/GivenThatIWantToInstallDotnetFromAScript.cs @@ -131,17 +131,22 @@ public static IEnumerable InstallRuntimeFromChannelTestCases { get { + var seen = new HashSet<(string, string?, string)>(); + // Download runtimes using branches as channels. foreach (var runtimeBranchInfo in _runtimeBranches) { foreach (string? quality in GetQualityOptionsFromFlags(runtimeBranchInfo.quality).DefaultIfEmpty()) { - yield return new object?[] + if (seen.Add((runtimeBranchInfo.branch, quality, runtimeBranchInfo.versionRegex))) { - runtimeBranchInfo.branch, - quality, - runtimeBranchInfo.versionRegex, - }; + yield return new object?[] + { + runtimeBranchInfo.branch, + quality, + runtimeBranchInfo.versionRegex, + }; + } } } @@ -150,12 +155,15 @@ public static IEnumerable InstallRuntimeFromChannelTestCases { foreach (string? quality in GetQualityOptionsFromFlags(channelInfo.quality).DefaultIfEmpty()) { - yield return new object?[] + if (seen.Add((channelInfo.channel, quality, channelInfo.versionRegex))) { - channelInfo.channel, - quality, - channelInfo.versionRegex, - }; + yield return new object?[] + { + channelInfo.channel, + quality, + channelInfo.versionRegex, + }; + } } } }