mirror of
https://github.com/actions/runner-images.git
synced 2025-12-19 08:22:12 +00:00
fix spacing
This commit is contained in:
@@ -88,8 +88,8 @@ function ShouldReturnZeroExitCode {
|
|||||||
|
|
||||||
if (-not $succeeded)
|
if (-not $succeeded)
|
||||||
{
|
{
|
||||||
$CommandResultIndent = " " * 4
|
$сommandOutputIndent = " " * 4
|
||||||
$commandOutput = ($result.Output | ForEach-Object { "${CommandResultIndent}${_}" }) -join "`n"
|
$commandOutput = ($result.Output | ForEach-Object { "${сommandOutputIndent}${_}" }) -join "`n"
|
||||||
$failureMessage = "Command '${ActualValue}' has finished with exit code ${actualExitCode}`n${commandOutput}"
|
$failureMessage = "Command '${ActualValue}' has finished with exit code ${actualExitCode}`n${commandOutput}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -9,12 +9,12 @@ Describe "Java" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
It "<ToolName>" -TestCases @(
|
It "<ToolName>" -TestCases @(
|
||||||
@{ ToolName = "java" }
|
@{ ToolName = "java" }
|
||||||
@{ ToolName = "mvn" }
|
@{ ToolName = "mvn" }
|
||||||
@{ ToolName = "ant" }
|
@{ ToolName = "ant" }
|
||||||
@{ ToolName = "gradle" }
|
@{ ToolName = "gradle" }
|
||||||
) {
|
) {
|
||||||
"$ToolName -version" | Should -ReturnZeroExitCode
|
"$ToolName -version" | Should -ReturnZeroExitCode
|
||||||
}
|
}
|
||||||
|
|
||||||
It "Java <Version>" -TestCases @(
|
It "Java <Version>" -TestCases @(
|
||||||
|
|||||||
Reference in New Issue
Block a user