mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Report the same number of tests when run by Travis via cron (#4731)
This commit is contained in:
committed by
Dongbo Wang
parent
96a90f8985
commit
e0b7c23384
@@ -81,8 +81,21 @@ function ShouldBeParseError
|
||||
# https://github.com/dotnet/coreclr/issues/9745
|
||||
#
|
||||
if ($SkipInTravisFullBuild) {
|
||||
## Report that we skipped the test and return
|
||||
It "Parse error expected: <<$src>>" -Skip {}
|
||||
## Report that we skipped the tests and return
|
||||
## be sure to report the same number of tests
|
||||
## it should have the same appearance as if the tests were run
|
||||
Context "Parse error expected: <<$src>>" {
|
||||
if ($SkipAndCheckRuntimeError)
|
||||
{
|
||||
It "error should happen at parse time, not at runtime" -Skip {}
|
||||
}
|
||||
It "Error count" -Skip { }
|
||||
foreach($expectedError in $expectedErrors)
|
||||
{
|
||||
It "Error Id" -Skip { }
|
||||
It "Error position" -Skip { }
|
||||
}
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user