]> git.saurik.com Git - apt.git/commitdiff
also check that the running kernel is kept
authorMichael Vogt <michael.vogt@ubuntu.com>
Mon, 5 Nov 2012 10:39:47 +0000 (11:39 +0100)
committerMichael Vogt <mvo@debian.org>
Fri, 14 Feb 2014 19:27:03 +0000 (20:27 +0100)
test/integration/test-kernel-helper-autoremove
test/integration/test-kernel-helper-autoremove.fake-dpkg

index a4c31283ef67326193f40be2608059166bd191f2..4c0571b13c9a013e563402ff7c04e1fb9fe3076c 100755 (executable)
@@ -28,6 +28,8 @@ sh  ${TESTDIR}/../../debian/apt.auto-removal.sh
 # and ensure its there, valid and version 10.0.0-1 is there too
 test -e $TMPDIR/apt.conf.d/01autoremove-kernels
 apt-config -c ${APT_CONFIG} dump|grep -q "APT::NeverAutoRemove::.*\^linux-image-10.0.0-1-generic\.\*" 
+# ... and also that the running kernel is exlucded
+apt-config -c ${APT_CONFIG} dump|grep -q "APT::NeverAutoRemove::.*\^linux-image-$(uname -r)\.\*" 
 
 # done
-msgpass
\ No newline at end of file
+msgpass
index aec6d4418696183fc6f1561e0b9033ac87d2a1e5..a365c537010716291750e68d1795d4dbce41abf0 100644 (file)
@@ -3,7 +3,7 @@ set -e
 
 if [ "$1" = "-l" ]; then
     echo "ii  linux-image-1.0.0-2-generic  1.0.01-2  amd64"
-    echo "ii  linux-image-3.5.0-17-generic  3.5.0-17  amd64"
+    echo "ii  linux-image-$(uname -r)  not-used  amd64"
     echo "ii linux-image-10.0.0-1-generic  10.0.0.1-1  amd64"
 elif [ "$1" = "--compare-versions" ]; then
     dpkg "$1" "$2" "$3" "$4"