Skip to content

Commit

Permalink
Merge pull request #111 from lcipria/main
Browse files Browse the repository at this point in the history
adding support to almalinux
  • Loading branch information
goldyfruit authored Jul 23, 2024
2 parents 17990cc + 86e9c3a commit e9abb36
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ Then follow the instructions display on screen.

| Distribution | Version |
| ------------------- | --------- |
| AlmaLinux | `>= 8` |
| Arch | `rolling` |
| CentOS | `>= 8` |
| Debian GNU/Linux | `>= 10` |
Expand Down
18 changes: 18 additions & 0 deletions tests/bats/packages.bats
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,15 @@ EOF
assert_success
}

@test "function_required_packages_almalinux" {
DISTRO_NAME="almalinux"
function dnf() {
exit 0
}
run required_packages
assert_success
}

@test "function_required_packages_manjaro" {
DISTRO_NAME="manjaro"
function pacman() {
Expand Down Expand Up @@ -175,6 +184,15 @@ EOF
assert_failure
}

@test "function_required_packages_almalinux_fail" {
DISTRO_NAME="almalinux"
function dnf() {
exit 1
}
run required_packages
assert_failure
}

@test "function_required_packages_manjaro_fail" {
DISTRO_NAME="manjaro"
function pacman() {
Expand Down
2 changes: 1 addition & 1 deletion utils/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ function required_packages() {
fedora)
dnf install -y python3 python3-devel python3-pip python3-virtualenv newt expect jq "${extra_packages[@]}" &>>"$LOG_FILE"
;;
rocky | centos)
almalinux | rocky | centos)
dnf install -y python3 python3-devel python3-pip newt expect jq "${extra_packages[@]}" &>>"$LOG_FILE"
;;
opensuse-tumbleweed | opensuse-leap)
Expand Down

0 comments on commit e9abb36

Please sign in to comment.