diff options
| author | David Kalnischkies <david@kalnischkies.de> | 2025-09-02 17:04:14 +0000 |
|---|---|---|
| committer | David Kalnischkies <david@kalnischkies.de> | 2025-09-02 18:50:04 +0000 |
| commit | 3c9399e643a07074d47c9bceca88e8d43ff55d36 (patch) | |
| tree | 04641cd0274b1ee08b2b0af2ba6d686fd6725c58 /test/integration | |
| parent | 4f162c2f63796411467b816ccd80a20b2c248e72 (diff) | |
Support kernel images with + in uname in kernel autoremove test
autopkgtest run on stable can have an uname like "6.12.41+deb13-amd64".
The +deb13 being relatively new in the package name. The code doing the
autoremoval has no problem with it and its a legal package name, but
the test that wants to check if the right regexes are generated does not
escape the + correctly (aka at all) so it isn't finding the regex it is
looking for failing the test.
Diffstat (limited to 'test/integration')
| -rwxr-xr-x | test/integration/test-kernel-helper-autoremove | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/integration/test-kernel-helper-autoremove b/test/integration/test-kernel-helper-autoremove index a7008799c..9cbda431f 100755 --- a/test/integration/test-kernel-helper-autoremove +++ b/test/integration/test-kernel-helper-autoremove @@ -39,7 +39,7 @@ testprotected() { testsuccess --nomsg grep '^\^linux-.*-100\\\.0\\\.0-1-generic\$$' protected.list msgtest 'Check kernel autoremoval protection list includes' 'running kernel' - testsuccess --nomsg grep "^\\^linux-.*-$(uname -r | tr '[A-Z]' '[a-z]' | sed -e 's#\.#\\\\.#g')\\\$\$" protected.list + testsuccess --nomsg grep "^\\^linux-.*-$(uname -r | tr '[A-Z]' '[a-z]' | sed -e 's#\.#\\\\.#g' -e 's#\+#\\\\+#g')\\\$\$" protected.list msgtest 'Check kernel autoremoval protection list does not include' 'metapackages' testfailure --nomsg grep -e '^\^linux-image-amd64\$$' -e '^\^linux-image-686-pae\$$' -e ':i386' protected.list |
