Hi Bastian,

On 31-12-2023 18:33, Bastian Blank wrote:
Do you have a handy script available to try this by hand?  I was just
looking at this test (to unravel the loop logic and replace it with one
test per kernel), but I'm not sure if this ever worked before.

It was nearly completely attached at the bottom of the e-mail. Writing it out and providing a patch (from memory, so untested) as well.

# in path with src:linux unpacked
# Apply patch
export ADT_REBOOT_MARK=step0 # or whatever number matches your kernel
export AUTOPKGTEST_TMP=$(mktemp -d)
chmod a+x debian/tests/selftests

diff --git a/debian/tests/selftests b/debian/tests/selftests
index 02cc29372e..ff12a0cd17 100644
--- a/debian/tests/selftests
+++ b/debian/tests/selftests
@@ -1,4 +1,4 @@
-#!/bin/bash -eu
+#!/bin/bash -eux
@@ -81,8 +81,8 @@ step=$((step + 1))
 if [ "$step" -lt "$steps" ]; then
     # Load the next kernel
-    kexec -l /boot/vmlinuz-$ver --initrd /boot/initrd.img-$ver --reuse-cmdline
-    /tmp/autopkgtest-reboot step$step
+#    kexec -l /boot/vmlinuz-$ver --initrd /boot/initrd.img-$ver --reuse-cmdline
+#    /tmp/autopkgtest-reboot step$step
 exit 0

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

Reply via email to