chocolatey / choco

Chocolatey - the package manager for Windows
https://chocolatey.org
Other
10.05k stars 890 forks source link

(#2712) Normalize ExitCode pester tests #3373

Closed corbob closed 6 months ago

corbob commented 6 months ago

Description Of Changes

Normalize the exit code checking of the Pester tests.

Motivation and Context

This normalizes the exit code checking of the pester tests so that if they don't return as expected we have the output of the command.

Testing

Ran through Test Kitchen in Team City (see link to gep13 in Slack)

Operating Systems Testing

Windows Server 2016/2019

Change Types Made

Change Checklist

Related Issue

gep13 commented 6 months ago

@corbob thank you for getting these fixed up! This is going to help a LOT!