I didn't dig into the specifics, but the error the we see in the passed test log comes from this this line from /usr/lib/dkms/dkms-autopkgtest:
# Try and remove dkms to spot packages which miss a dkms dependency
echo "I: Checking for missing dkms dependency by trying to deinstall dkms"
dpkg --remove dkms || true
So failures to execute that command are explicitly ignored (|| true). I don't see an issue with autopkgtest (package or infra) here.
I didn't dig into the specifics, but the error the we see in the passed test log comes from this this line from /usr/lib/ dkms/dkms- autopkgtest:
# Try and remove dkms to spot packages which miss a dkms dependency
echo "I: Checking for missing dkms dependency by trying to deinstall dkms"
dpkg --remove dkms || true
So failures to execute that command are explicitly ignored (|| true). I don't see an issue with autopkgtest (package or infra) here.