diff --git a/debian/tests/test-common b/debian/tests/test-common index 981aafe..d10d59c 100644 --- a/debian/tests/test-common +++ b/debian/tests/test-common @@ -13,6 +13,15 @@ if [ -z "$KVER" ]; then exit 2 fi +# If any built-in drivers request firmware, create dummy files to +# avoid warnings for this (see #1078168). +tr '\0' '\n' < "/lib/modules/$KVER/modules.builtin.modinfo" \ +| sed -n -e 's/^[^=]*\.firmware=//p' \ +| while read fw_file; do + mkdir -p "/lib/firmware/$(dirname "$fw_file")" + touch "/lib/firmware/$fw_file" +done + case "$(dpkg --print-architecture)" in arm64) # The Ubuntu arm64 autopkgtest runs rarely into the 1200 seconds timeout.