Skip to content

Commit

Permalink
Change the message in test phase and throw error
Browse files Browse the repository at this point in the history
Signed-off-by: nitin sanghi <[email protected]>
  • Loading branch information
sanghinitin committed Dec 2, 2024
1 parent 4c028bb commit 0924d5d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions habitat/tests/test.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@ Write-Host "--- :fire: Smokish test"
$version=hab pkg exec "${pkg_ident}" chef-cli -v
$actual_version=[Regex]::Match($version,"([0-9]+.[0-9]+.[0-9]+)").Value
$package_version=$PackageIdentifier.split("/",4)[2]
Write-BuildLine "package_version $package_version actual version $actual_version"
if ($package_version -eq $actual_version)
{
Write "Chef-cli working fine"
}
else {
Write-Error "chef-cli version not met expected $package_version actual version $actual_version "
throw "Chef cli windows pipeline not working for hab pkg"
}

0 comments on commit 0924d5d

Please sign in to comment.