Commit fdd6794c authored by Milan Broz's avatar Milan Broz

Add some sleep to interactive prompt test.

Seems some distros use broken expect package.
parent 6c7e9608
......@@ -617,9 +617,11 @@ expect - >/dev/null 2>&1 <<EOF
set timeout 30
eval spawn $CRYPTSETUP luksOpen -v -T 2 $LOOPDEV $DEV_NAME
expect "Enter passphrase"
sleep 0.5
send "$PWD0x\n"
expect "No key available with this passphrase."
expect "Enter passphrase"
sleep 0.5
send "$PWD0\n"
expect "Key slot 0 unlocked."
expect eof
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment