From 05296b1e75624e094e27566032b13c5977ecc2a5 Mon Sep 17 00:00:00 2001 From: Igor Pecovnik Date: Tue, 24 Sep 2024 15:19:53 +0200 Subject: [PATCH] Add unit tests --- lib/armbian-configng/config.ng.software.sh | 2 -- tests/SW26.conf | 3 +++ 2 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 tests/SW26.conf diff --git a/lib/armbian-configng/config.ng.software.sh b/lib/armbian-configng/config.ng.software.sh index 0aaadd95..84ff09b2 100644 --- a/lib/armbian-configng/config.ng.software.sh +++ b/lib/armbian-configng/config.ng.software.sh @@ -82,7 +82,6 @@ module_options+=( # install_docker() { # Check if repo for distribution exists. - DISTROID=bookworm URL="https://download.docker.com/linux/${DISTRO,,}/dists/$DISTROID" if wget --spider "${URL}" 2> /dev/null; then # Add Docker's official GPG key: @@ -101,7 +100,6 @@ install_docker() { fi systemctl enable docker.service > /dev/null 2>&1 systemctl enable containerd.service > /dev/null 2>&1 - sudo usermod -aG docker $USER > /dev/null 2>&1 whiptail --msgbox "To test that Docker has installed successfully\nrun the following command: docker run hello-world" 9 70 fi else diff --git a/tests/SW26.conf b/tests/SW26.conf new file mode 100644 index 00000000..57f7cf42 --- /dev/null +++ b/tests/SW26.conf @@ -0,0 +1,3 @@ +ENABLED=true +RELEASE="bookworm:jammy:noble" +CONDITION="docker run hello-world"