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 0924d5d commit 9e3e651
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion habitat/tests/test.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ 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"

Write-Host "package_version $package_version actual version $actual_version"
if ($package_version -eq $actual_version)
{
Write "Chef-cli working fine"
Expand Down

0 comments on commit 9e3e651

Please sign in to comment.