From 3d5c6ece1c72fc1d7616f1e878935b0fa310e2ed Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Fri, 3 May 2024 15:56:52 +0200 Subject: [PATCH] TEST-74-AUX-UTILS: Drop usage of loop module This module is builtin on ubuntu causing the test to fail. Let's use just dummy instead. I tried replacing it with scsi_debug but that caused issues with modprobe complaining it could not remove scsi_debug because it was in use. --- test/units/testsuite-74.modules-load.sh | 38 +++++++++++-------------- 1 file changed, 17 insertions(+), 21 deletions(-) diff --git a/test/units/testsuite-74.modules-load.sh b/test/units/testsuite-74.modules-load.sh index aea2f3cbdea..ceac8262bfd 100755 --- a/test/units/testsuite-74.modules-load.sh +++ b/test/units/testsuite-74.modules-load.sh @@ -20,7 +20,7 @@ fi ORIG_MODULES_LOAD_CONFIG="$(systemd-analyze cat-config modules-load.d)" # Check if we have required kernel modules -modprobe --all --resolve-alias loop dummy +modprobe --all --resolve-alias dummy mkdir -p /run/modules-load.d/ @@ -29,62 +29,58 @@ mkdir -p /run/modules-load.d/ "$MODULES_LOAD_BIN" --version # Explicit config file -modprobe -v --all --remove loop dummy -printf "loop\ndummy" >"$CONFIG_FILE" +modprobe -v --all --remove dummy +printf "dummy" >"$CONFIG_FILE" "$MODULES_LOAD_BIN" "$CONFIG_FILE" |& tee /tmp/out.log -grep -E "Inserted module .*loop" /tmp/out.log grep -E "Inserted module .*dummy" /tmp/out.log # Implicit config file -modprobe -v --all --remove loop dummy -printf "loop\ndummy" >"$CONFIG_FILE" +modprobe -v --all --remove dummy +printf "dummy" >"$CONFIG_FILE" "$MODULES_LOAD_BIN" |& tee /tmp/out.log -grep -E "Inserted module .*loop" /tmp/out.log grep -E "Inserted module .*dummy" /tmp/out.log # Valid & invalid data mixed together -modprobe -v --all --remove loop dummy +modprobe -v --all --remove dummy cat >"$CONFIG_FILE" <