Skip to content

Commit e94cb35

Browse files
Copilotmconnew
andcommitted
Add Azure Linux support to test infrastructure
- Add 'azurelinux' to RuntimeIdentifier detection list - Add 'Microsoft Azure Linux' to OSDescription detection list - Map both to OSID.Mariner (Azure Linux is successor to CBL-Mariner) - Detection is version-independent using substring matching Co-authored-by: mconnew <8648390+mconnew@users.noreply.github.com>
1 parent 6929235 commit e94cb35

File tree

1 file changed

+2
-0
lines changed
  • src/System.Private.ServiceModel/tests/Common/Infrastructure

1 file changed

+2
-0
lines changed

src/System.Private.ServiceModel/tests/Common/Infrastructure/OSHelper.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ public static class OSHelper
2828

2929
private static List<Tuple<string, OSID>> _runtimeToOSID = new List<Tuple<string, OSID>>
3030
{
31+
new Tuple<string, OSID>("azurelinux", OSID.Mariner), // Azure Linux (successor to CBL-Mariner)
3132
new Tuple<string, OSID>("Mariner", OSID.Mariner),
3233
new Tuple<string, OSID>("debian", OSID.Debian),
3334
new Tuple<string, OSID>("fedora", OSID.Fedora),
@@ -49,6 +50,7 @@ public static class OSHelper
4950
// This mapping is described at https://msdn.microsoft.com/en-us/library/windows/desktop/ms724832(v=vs.85).aspx
5051
private static List<Tuple<string, OSID>> _descriptionToOSID = new List<Tuple<string, OSID>>
5152
{
53+
new Tuple<string, OSID>("Microsoft Azure Linux", OSID.Mariner), // Azure Linux (successor to CBL-Mariner)
5254
new Tuple<string, OSID>("Microsoft Windows 6.0.", OSID.Windows_Server_2008),
5355
new Tuple<string, OSID>("Microsoft Windows 6.1.", OSID.Windows_7 | OSID.Windows_Server_2008_R2),
5456
new Tuple<string, OSID>("Microsoft Windows 6.2.", OSID.Windows_8 | OSID.Windows_Server_2012),

0 commit comments

Comments
 (0)