Skip to content

Commit

Permalink
[slowroll] Add openSUSE Slowroll support
Browse files Browse the repository at this point in the history
  • Loading branch information
goldyfruit committed Jul 30, 2024
1 parent 5b090a1 commit dc3fc04
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 @@ -27,6 +27,7 @@ Then follow the instructions display on screen.
| Linux Mint | `>= 21` |
| openSUSE Leap | `>= 15` |
| openSUSE Tumbleweed | `rolling` |
| openSUSE Slowroll | `rolling` |
| Manjaro | `rolling` |
| Raspbian | `10` |
| Raspberry Pi OS | `>= 11` |
Expand Down
18 changes: 18 additions & 0 deletions tests/bats/packages.bats
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,15 @@ EOF
assert_success
}

@test "function_required_packages_opensuse_slowroll" {
DISTRO_NAME="opensuse-slowroll"
function zypper() {
exit 0
}
run required_packages
assert_success
}

@test "function_required_packages_linuxmint" {
DISTRO_NAME="linuxmint"
function apt-get() {
Expand Down Expand Up @@ -229,6 +238,15 @@ EOF
assert_failure
}

@test "function_required_packages_opensuse_slowroll_fail" {
DISTRO_NAME="opensuse-slowroll"
function zypper() {
exit 1
}
run required_packages
assert_failure
}

@test "function_required_packages_linuxmint_fail" {
DISTRO_NAME="linuxmint"
function apt-get() {
Expand Down
2 changes: 1 addition & 1 deletion utils/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ function required_packages() {
almalinux | rocky | centos)
dnf install -y python3 python3-devel python3-pip newt expect jq "${extra_packages[@]}" &>>"$LOG_FILE"
;;
opensuse-tumbleweed | opensuse-leap)
opensuse-tumbleweed | opensuse-leap | opensuse-slowroll)
zypper install --no-recommends -y python3 python3-devel python3-pip python3-rpm newt expect jq "${extra_packages[@]}" &>>"$LOG_FILE"
;;
arch | manjaro | endeavouros)
Expand Down

0 comments on commit dc3fc04

Please sign in to comment.