summaryrefslogtreecommitdiff
path: root/test/integration/test-kernel-helper-autoremove
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2012-11-05 11:39:47 +0100
committerMichael Vogt <michael.vogt@ubuntu.com>2012-11-05 11:39:47 +0100
commita7e926d57fbed2e0cc1c059364191a3544ce2fe5 (patch)
treec3ca257ec91d013686eea58d58b3226219465fe6 /test/integration/test-kernel-helper-autoremove
parent0b9f0e9bba678c3e5327a260faee96ea3a71df79 (diff)
also check that the running kernel is kept
Diffstat (limited to 'test/integration/test-kernel-helper-autoremove')
-rwxr-xr-xtest/integration/test-kernel-helper-autoremove4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/integration/test-kernel-helper-autoremove b/test/integration/test-kernel-helper-autoremove
index a4c31283e..4c0571b13 100755
--- a/test/integration/test-kernel-helper-autoremove
+++ b/test/integration/test-kernel-helper-autoremove
@@ -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