Skip to content

Commit f0e4c51

Browse files
committed
Change the message in test phase and throw error
Signed-off-by: nitin sanghi <[email protected]>
1 parent 4c028bb commit f0e4c51

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

habitat/tests/test.ps1

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,12 @@ Write-Host "--- :fire: Smokish test"
99
$version=hab pkg exec "${pkg_ident}" chef-cli -v
1010
$actual_version=[Regex]::Match($version,"([0-9]+.[0-9]+.[0-9]+)").Value
1111
$package_version=$PackageIdentifier.split("/",4)[2]
12+
Write-BuildLine "package_version $package_version actual version $actual_version"
1213
if ($package_version -eq $actual_version)
1314
{
1415
Write "Chef-cli working fine"
1516
}
1617
else {
1718
Write-Error "chef-cli version not met expected $package_version actual version $actual_version "
19+
throw "Chef cli windows pipeline not working for hab pkg"
1820
}

0 commit comments

Comments
 (0)