From 0c1eb4d1140499a7bf877432ffd207820e0e6520 Mon Sep 17 00:00:00 2001
From: Nicolas KAROLAK <nicolas@karolak.fr>
Date: Wed, 24 Apr 2019 17:21:21 +0200
Subject: [PATCH] test_apt trigger warning not fail

---
 tests/test_apt.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/test_apt.sh b/tests/test_apt.sh
index b12a436f..5025556d 100755
--- a/tests/test_apt.sh
+++ b/tests/test_apt.sh
@@ -18,7 +18,7 @@ while fuser /var/lib/dpkg/lock >/dev/null 2>&1 ; do
     if (( $lock_counter > $lock_timeout )); then
         echo "APT is reported as locked for more than $lock_timeout seconds now..."
         echo "Either a big upgrade is running or it is hung, please take a look"
-        exit 1
+        exit 3
     fi
 done
 set -e
@@ -41,7 +41,7 @@ if [ ! -f /etc/apt/apt.conf.d/20auto-upgrades ]; then
     if [ ! -f /etc/apt/apt.conf.d/50unattended-upgrades ]; then
         echo "Automatic security updates not enabled."
         echo "Perhaps the unattended-upgrades package is not installed."
-        exit 1
+        exit 3
     fi
 fi
 echo "Automatic security updates enabled."
-- 
GitLab