-
Notifications
You must be signed in to change notification settings - Fork 335
[pipeline/e2e] end-to-end-tests.ps1 should fail with failure test #1518
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[pipeline/e2e] end-to-end-tests.ps1 should fail with failure test #1518
Conversation
TestExample of un-expected pass before fixed Example of failed as expected after fixed Example of error message
|
As far as I can tell it already does this. Do you have a repro for it not doing so? (EDIT: I see you have an example in a comment here but it's not clear how you got that to happen) |
|
It looks like the repro might only happen with something like this "Pester" module ( as in #1512 ) because all other existing e2e tests fail by throwing an exception, thus stopping further test runs. |
Sorry I forgot to attach the test commit 7755480 Run this script with BeforeAll {
Import-Module $PSScriptRoot/not-exist/posh-vcpkg
}
Describe 'Module posh-vcpkg tests' {
It 'Expect fail' {}
}This issue has been fixed by:
|
|
I'm now trying to fix the error message Update: Fixed by adding P.S. The command |
|
Unable change runner machine It hangs with PR check: Update: It might be waiting the branch protection As a transitional, add arm64 https://github.com/actions/runner-images?tab=readme-ov-file#available-images Update 2: |
Note
https://devblogs.microsoft.com/devops/upcoming-deprecation-of-macos-12-hosted-pipeline-image/ |
TestExpected fail with failed test case https://github.com/microsoft/vcpkg-tool/actions/runs/11925979891 |
|
Thanks! |
Fix
end-to-end-tests.ps1, which should fail and stop with failure test case.Change
$LASTEXITCODE$LASTEXITCODEforThrow-IfNotFailedautocomplete-command.ps1Throw-IfNotFailedfor non-windowsRemove-Problem-Matchersfor malformed portaction/checkout@4,actions/setup-node@v4,lukka/[email protected]