mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-13 20:00:08 +01:00
Fix test for very old kernels that truncate loop backing file info.
This commit is contained in:
@@ -751,11 +751,8 @@ fi
|
|||||||
which expect >/dev/null 2>&1 || skip "WARNING: expect tool missing, interactive test will be skipped." 0
|
which expect >/dev/null 2>&1 || skip "WARNING: expect tool missing, interactive test will be skipped." 0
|
||||||
|
|
||||||
prepare "[32] Interactive password retry from terminal." new
|
prepare "[32] Interactive password retry from terminal." new
|
||||||
if [ "$(pwd)" = "/" ]; then
|
EXPECT_DEV=$(losetup $LOOPDEV | sed -e "s/.*(\(.*\))/\1/")
|
||||||
EXPECT_DEV=/$IMG
|
|
||||||
else
|
|
||||||
EXPECT_DEV=$(pwd)/$IMG
|
|
||||||
fi
|
|
||||||
expect - >/dev/null <<EOF
|
expect - >/dev/null <<EOF
|
||||||
proc abort {} { send_error "Timeout. "; exit 2 }
|
proc abort {} { send_error "Timeout. "; exit 2 }
|
||||||
set timeout 10
|
set timeout 10
|
||||||
|
|||||||
Reference in New Issue
Block a user