Skip to content

Commit

Permalink
change version command
Browse files Browse the repository at this point in the history
Signed-off-by: nitin sanghi <[email protected]>
  • Loading branch information
sanghinitin committed Dec 6, 2024
1 parent 9a731f3 commit f5ca222
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions habitat/tests/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ echo "Testing ${pkg_ident} executables"
version=$(hab pkg exec "${pkg_ident}" chef-cli -v)
echo $version
actual_version=$(echo "$version" | sed -E 's/.*version: ([0-9]+\.[0-9]+\.[0-9]+).*/\1/')
echo $actual_version
[[ "$package_version" = "$actual_version" ]] || error "chef-cli version is not the expected version. Expected '$package_version', got '$actual_version'"


0 comments on commit f5ca222

Please sign in to comment.