Force install in non interactive mode 84/74784/2
authorCédric Ollivier <cedric.ollivier@orange.com>
Mon, 3 Mar 2025 20:25:48 +0000 (21:25 +0100)
committerCédric Ollivier <cedric.ollivier@orange.com>
Mon, 3 Mar 2025 20:26:28 +0000 (21:26 +0100)
Change-Id: Iabb004850da8d48d5e86ce043c01244f527a74fc
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
jjb/functest/xtesting-ci.yaml

index 213cb3c..f9e757a 100644 (file)
           fi
           sudo rm -rfv /data /tmp/xtesting*
           if [ $(lsb_release -r -s |cut -d\. -f1) -ge "22" ]; then
-            sudo apt-get install ansible patch -y
+            sudo DEBIAN_FRONTEND=noninteractive apt-get \
+              -o DPkg::Lock::Timeout=300 install ansible patch -y
           else
-            sudo apt-get install patch -y
+            sudo DEBIAN_FRONTEND=noninteractive apt-get \
+              -o DPkg::Lock::Timeout=300 install patch -y
             sudo pip3 install ansible
           fi
           rm -rf ~/.ansible/roles/collivier.xtesting
             sudo rm -rfv /data /tmp/xtesting*
           EOF
           if [ $(lsb_release -r -s |cut -d\. -f1) -ge "22" ]; then
-            sudo apt-get install ansible patch -y
+            sudo DEBIAN_FRONTEND=noninteractive apt-get \
+              -o DPkg::Lock::Timeout=300 install ansible patch -y
           else
             sudo apt-get install patch -y
-            sudo pip3 install ansible
+            sudo DEBIAN_FRONTEND=noninteractive apt-get \
+              -o DPkg::Lock::Timeout=300 install ansible
           fi
           rm -rf ~/.ansible/roles/collivier.xtesting
           case {release} in