mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
win_chocolatey: Add integration tests (#21930)
And also fix a known issue.
This commit is contained in:
committed by
John R Barker
parent
ebc2716be7
commit
a66d5dcc43
@@ -110,7 +110,7 @@ Function Choco-IsInstalled
|
||||
Throw "Error checking installation status for $package"
|
||||
}
|
||||
|
||||
If ("$results" -match "$package .* (\d+) packages installed.")
|
||||
If ("$output" -match "(\d+) packages installed.")
|
||||
{
|
||||
return $matches[1] -gt 0
|
||||
}
|
||||
@@ -200,7 +200,7 @@ Function Choco-Upgrade
|
||||
Throw "Error installing $package"
|
||||
}
|
||||
|
||||
if ("$results" -match ' upgraded (\d+)/\d+ package\(s\)\. ')
|
||||
if ("$output" -match ' upgraded (\d+)/\d+ package\(s\)\. ')
|
||||
{
|
||||
if ($matches[1] -gt 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user