Skip to content

Commit

Permalink
adding echo
Browse files Browse the repository at this point in the history
Signed-off-by: nikhil2611 <[email protected]>
  • Loading branch information
nikhil2611 committed Dec 6, 2024
1 parent f38ede3 commit 262ed02
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions habitat/tests/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,11 @@ error () {
[[ -n "$pkg_ident" ]] || error 'no hab package identity provided'

package_version=$(awk -F / '{print $3}' <<<"$pkg_ident")
echo $package_version

cd "${project_root}"

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

0 comments on commit 262ed02

Please sign in to comment.