Skip to content

Commit

Permalink
Add unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
igorpecovnik authored and Tearran committed Sep 25, 2024
1 parent f68bf4b commit 05296b1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/armbian-configng/config.ng.software.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down
3 changes: 3 additions & 0 deletions tests/SW26.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
ENABLED=true
RELEASE="bookworm:jammy:noble"
CONDITION="docker run hello-world"

0 comments on commit 05296b1

Please sign in to comment.