summaryrefslogtreecommitdiffstats
path: root/tests/blockwise-compat-test
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 08:35:41 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 08:35:41 +0000
commitf7458043ae6a2d2d54b911fac52e50341646bef2 (patch)
tree6c58e084cd8728490fd5bb8eead07db0be0038f4 /tests/blockwise-compat-test
parentAdding upstream version 2:2.6.1. (diff)
downloadcryptsetup-48f0f8900746d7b14b709276920863cfa2e71cb9.tar.xz
cryptsetup-48f0f8900746d7b14b709276920863cfa2e71cb9.zip
Adding upstream version 2:2.7.0.upstream/2%2.7.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/blockwise-compat-test')
-rwxr-xr-xtests/blockwise-compat-test2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/blockwise-compat-test b/tests/blockwise-compat-test
index 11db493..8db91c9 100755
--- a/tests/blockwise-compat-test
+++ b/tests/blockwise-compat-test
@@ -68,7 +68,7 @@ add_device() {
if [ $? -ne 0 ] ; then
skip "This kernel seems to not support proper scsi_debug module."
fi
- grep -q scsi_debug /sys/block/*/device/model || sleep 2
+ sleep 1
DEV=$(grep -l -e scsi_debug /sys/block/*/device/model | cut -f4 -d /)
DEV="/dev/$DEV"
[ -b $DEV ] || fail "Cannot find $DEV."