summaryrefslogtreecommitdiff
path: root/test/integration/framework
diff options
context:
space:
mode:
authorDavid Kalnischkies <david@kalnischkies.de>2015-09-08 12:49:04 +0200
committerDavid Kalnischkies <david@kalnischkies.de>2015-09-14 15:22:18 +0200
commit3196dae8e92407b3aa8e12779a8ed7db998ebdc4 (patch)
treee8f2b6bb7276294ce17572d1c71bd5f1f0f5b8d2 /test/integration/framework
parent8f5b67ae1488f5addc70b337aea7aa1ced168550 (diff)
select kernels to protect from autoremove based on Debian version
This is basically a rewrite of the script with the general idea of finding the Debian version of the installed kernels – as multiple flavours will have the same Debian version – select the two newest of them and translate them back to versions found in package names. This way we avoid e.g. kernel and kernel-rt to use up the protected slots even through they are basically the same kernel (just a different flavour) so it is likely that if kernel doesn't work for some reason, kernel-rt will not either. This also deals with foreign kernel packages, kernels on hold and partly installed kernels (in case multiple kernels are installed in the same apt run) in a hopefully sensible way. Closes: 787827
Diffstat (limited to 'test/integration/framework')
-rw-r--r--test/integration/framework4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/integration/framework b/test/integration/framework
index 2e997d7f9..3bf6012ba 100644
--- a/test/integration/framework
+++ b/test/integration/framework
@@ -1470,6 +1470,10 @@ msgfailoutput() {
if expr match "$1" "$FILEFLAGS" >/dev/null; then
echo "#### stat(2) of file: $2 ####"
stat "$2" || true
+ if test -e "$2"; then
+ echo "#### Complete file: $2 ####"
+ cat >&2 "$2" || true
+ fi
fi
}
msgfailoutputstatfile "$2" "$3"