Add missing test for alpine3.18 6.0 powershell (#4629)

This commit is contained in:
Logan Bussell 2023-07-10 14:01:14 -07:00
Родитель b38b938900
Коммит 97073480d9
1 изменённых файлов: 13 добавлений и 4 удалений

Просмотреть файл

@ -32,11 +32,20 @@ namespace Microsoft.DotNet.Docker.Tests
private bool IsPowerShellSupported(ProductImageData imageData, out string reason)
{
if (imageData.OS.Contains("alpine") && imageData.IsArm)
if (imageData.OS.Contains("alpine"))
{
// PowerShell needs support for Arm-based Alpine (https://github.com/PowerShell/PowerShell/issues/14667, https://github.com/PowerShell/PowerShell/issues/12937)
reason = "PowerShell does not have Alpine arm images, skip testing";
return false;
if (imageData.IsArm)
{
// PowerShell needs support for Arm-based Alpine (https://github.com/PowerShell/PowerShell/issues/14667, https://github.com/PowerShell/PowerShell/issues/12937)
reason = "PowerShell does not have Alpine arm images, skip testing";
return false;
}
else if (imageData.Version.Major == 6 && imageData.OS.Contains("3.18"))
{
// PowerShell does not support Alpine 3.18 yet (https://github.com/PowerShell/PowerShell/issues/19703)
reason = "Powershell does not support Alpine 3.18 yet, skip testing";
return false;
}
}
reason = null;