mirror of
https://github.com/actions/runner-images.git
synced 2025-12-17 15:20:11 +00:00
fix comments
This commit is contained in:
@@ -69,15 +69,15 @@ function Invoke-PesterTests {
|
|||||||
# Fail in case if no tests are run
|
# Fail in case if no tests are run
|
||||||
if (-not ($results -and ($results.FailedCount -eq 0) -and ($results.PassedCount -gt 0))) {
|
if (-not ($results -and ($results.FailedCount -eq 0) -and ($results.PassedCount -gt 0))) {
|
||||||
$results
|
$results
|
||||||
throw "Test run has finished with errors"
|
throw "Test run has failed"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
# Pester Assert to check exit code of command
|
# Pester Assert to check exit code of command
|
||||||
function ShouldReturnZeroExitCode {
|
function ShouldReturnZeroExitCode {
|
||||||
Param(
|
Param(
|
||||||
[String]$ActualValue,
|
[String] $ActualValue,
|
||||||
[switch]$Negate,
|
[switch] $Negate,
|
||||||
[string] $Because
|
[string] $Because
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -86,8 +86,6 @@ function ShouldReturnZeroExitCode {
|
|||||||
[bool]$succeeded = $result.ExitCode -eq 0
|
[bool]$succeeded = $result.ExitCode -eq 0
|
||||||
if ($Negate) { $succeeded = -not $succeeded }
|
if ($Negate) { $succeeded = -not $succeeded }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (-not $succeeded)
|
if (-not $succeeded)
|
||||||
{
|
{
|
||||||
$CommandResultIndent = " " * 4
|
$CommandResultIndent = " " * 4
|
||||||
|
|||||||
Reference in New Issue
Block a user