From 8a3e16fa25924dd5cd6ad4977419e09295f7cf41 Mon Sep 17 00:00:00 2001 From: Milan Broz Date: Thu, 20 Nov 2025 21:28:07 +0100 Subject: [PATCH] tests: Avoid verity concurrent test failure on device node check This regularly crashes on Alpine Linux that use some strange configuration. Udev settle seems to help, despite it should be noop on recent systems... --- tests/verity-compat-test | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/verity-compat-test b/tests/verity-compat-test index 5fa70217..93ac405e 100755 --- a/tests/verity-compat-test +++ b/tests/verity-compat-test @@ -458,6 +458,8 @@ check_concurrent() # $1 hash wait grep -q "Command failed with code .* (wrong or missing parameters)" $DEV_OUT && fail grep -q "Command failed with code .* (wrong device or file specified)." $DEV_OUT && fail + # Some distros have strange udev rules, settle here seems to be necessary + udevadm settle >/dev/null 2>&1 check_exists rm $DEV_OUT $VERITYSETUP close $DEV_NAME >/dev/null 2>&1 || fail