Skip to content

Commit

Permalink
sudo for installing hab pkg
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 2677bea commit 409d9e7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/habitat-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ jobs:
hab pkg list --all
chmod +x habitat/tests/test.sh
habitat/tests/test.sh "${{vars.PKG_IDENT}}"
habitat/tests/test.sh $hartfile
- name: Install Habitat on Windows
if: ${{ matrix.os == 'windows-latest' }}
shell: pwsh
Expand All @@ -112,4 +112,4 @@ jobs:
write-output "--- running windows hab build"
hab pkg build .
hab pkg list --all
habitat/tests/test.ps1 "${{vars.PKG_IDENT}}"
habitat/tests/test.ps1
2 changes: 1 addition & 1 deletion habitat/tests/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,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/')
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'"

echo "--- :Running rake"
Expand Down

0 comments on commit 409d9e7

Please sign in to comment.