Skip to content

Commit

Permalink
Merge pull request #39 from chef/nikhil/test_pipeline
Browse files Browse the repository at this point in the history
Testing automated pipelines
  • Loading branch information
sanghinitin authored Dec 9, 2024
2 parents b56c827 + 3830be1 commit 7d13f9f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Empty file modified .expeditor/buildkite/artifact.habitat.test.sh
100644 → 100755
Empty file.
2 changes: 2 additions & 0 deletions habitat/tests/test.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,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}" berks -v | sed -E 's/.*: ([0-9]+\.[0-9]+\.[0-9]+).*/\1/')
echo $actual_version
[[ "$package_version" = "$actual_version" ]] || error "Berkshelf version is not the expected version. Expected '$package_version', got '$actual_version'"

0 comments on commit 7d13f9f

Please sign in to comment.