diff --git a/images/win/scripts/ImageHelpers/TestsHelpers.ps1 b/images/win/scripts/ImageHelpers/TestsHelpers.ps1 index 5f8b58095..ee962129f 100644 --- a/images/win/scripts/ImageHelpers/TestsHelpers.ps1 +++ b/images/win/scripts/ImageHelpers/TestsHelpers.ps1 @@ -88,8 +88,8 @@ function ShouldReturnZeroExitCode { if (-not $succeeded) { - $CommandResultIndent = " " * 4 - $commandOutput = ($result.Output | ForEach-Object { "${CommandResultIndent}${_}" }) -join "`n" + $сommandOutputIndent = " " * 4 + $commandOutput = ($result.Output | ForEach-Object { "${сommandOutputIndent}${_}" }) -join "`n" $failureMessage = "Command '${ActualValue}' has finished with exit code ${actualExitCode}`n${commandOutput}" } diff --git a/images/win/scripts/Tests/Java.Tests.ps1 b/images/win/scripts/Tests/Java.Tests.ps1 index 04a749bd4..9ca9be194 100644 --- a/images/win/scripts/Tests/Java.Tests.ps1 +++ b/images/win/scripts/Tests/Java.Tests.ps1 @@ -9,12 +9,12 @@ Describe "Java" { } It "" -TestCases @( - @{ ToolName = "java" } - @{ ToolName = "mvn" } - @{ ToolName = "ant" } - @{ ToolName = "gradle" } + @{ ToolName = "java" } + @{ ToolName = "mvn" } + @{ ToolName = "ant" } + @{ ToolName = "gradle" } ) { - "$ToolName -version" | Should -ReturnZeroExitCode + "$ToolName -version" | Should -ReturnZeroExitCode } It "Java " -TestCases @(