]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
tests: avoid apt-get asking for user input
authorMatteo Croce <teknoraver@meta.com>
Tue, 15 Jul 2025 15:32:00 +0000 (17:32 +0200)
committerLuca Boccassi <luca.boccassi@gmail.com>
Mon, 4 Aug 2025 14:38:06 +0000 (15:38 +0100)
apt needs to be called with `-y` to avoid asking for user input,
and thus blocking the script execution when ran non-interactively.

(cherry picked from commit 2e354ac7da7018fc8df355c4f362ee2ff7765f2a)

test/integration-test-setup.sh

index e09e0dddef47bc54e221ea0e6a7bf43b2f7c833b..4f2d4b6a67b6e26a0d8502b91dce15c4d2747e02 100755 (executable)
@@ -24,7 +24,7 @@ case "$1" in
                     pacman --upgrade --needed --noconfirm /work/build/*.pkg.tar
                     ;;
                 debian|ubuntu)
-                    apt-get install /work/build/*.deb
+                    DEBIAN_FRONTEND=noninteractive apt-get -y install /work/build/*.deb
                     ;;
                 opensuse*)
                     zypper --non-interactive install --allow-unsigned-rpm /work/build/*.rpm