diff --git a/README.md b/README.md index 2fcfde78..f7c8444c 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,7 @@ Then follow the instructions display on screen. | Distribution | Version | | ------------------- | --------- | +| AlmaLinux | `>= 8` | | Arch | `rolling` | | CentOS | `>= 8` | | Debian GNU/Linux | `>= 10` | diff --git a/tests/bats/packages.bats b/tests/bats/packages.bats index 28c26c1d..b8c9da85 100644 --- a/tests/bats/packages.bats +++ b/tests/bats/packages.bats @@ -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() { @@ -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() { diff --git a/utils/common.sh b/utils/common.sh index 1de6d160..87a16b03 100644 --- a/utils/common.sh +++ b/utils/common.sh @@ -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)