diff options
author | Michael Vogt <michael.vogt@ubuntu.com> | 2012-11-05 11:39:47 +0100 |
---|---|---|
committer | Michael Vogt <mvo@debian.org> | 2014-02-14 20:27:03 +0100 |
commit | 86eab64799033223f073ca30a6b9655fbab2c214 (patch) | |
tree | 557efc03ec10e303d01e4c671f18c766a83d68b4 /test/integration/test-kernel-helper-autoremove | |
parent | e5bdcc8708ee571a7d7d54bbdfa7e226300344ea (diff) |
also check that the running kernel is kept
Diffstat (limited to 'test/integration/test-kernel-helper-autoremove')
-rwxr-xr-x | test/integration/test-kernel-helper-autoremove | 4 |
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 |