]> 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>
Wed, 16 Jul 2025 01:05:41 +0000 (02:05 +0100)
apt needs to be called with `-y` to avoid asking for user input,
and thus blocking the script execution when ran non-interactively.

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