Skip to content

Commit

Permalink
version regex changed
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 8982668 commit b9c9f6e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions habitat/tests/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ package_version=$(awk -F / '{print $3}' <<<"$pkg_ident")
cd "${project_root}"

echo "--- :mag_right: Testing ${pkg_ident} executables"
actual_version=$(hab pkg exec "${pkg_ident}" chef-cli -v | sed -E 's/.*Version ([0-9]+\.[0-9]+\.[0-9]+).*/\1/')
[[ "$package_version" = "$actual_version" ]] || error "chef-cli is not the expected version. Expected '$package_version', got '$actual_version'"
actual_version=$(hab pkg exec "${pkg_ident}" chef-cli -v | sed -E 's/.*version: ([0-9]+\.[0-9]+\.[0-9]+).*/\1/')
[[ "$package_version" = "$actual_version" ]] || error "chef-cli version is not the expected version. Expected '$package_version', got '$actual_version'"


echo "--- :Running rake"
hab pkg exec "${pkg_ident}" rake unit

0 comments on commit b9c9f6e

Please sign in to comment.