Also test volume key mismatch for luksOpen.
authorMilan Broz <mbroz@redhat.com>
Sat, 11 Feb 2012 10:40:17 +0000 (11:40 +0100)
committerMilan Broz <mbroz@redhat.com>
Sat, 11 Feb 2012 10:40:17 +0000 (11:40 +0100)
tests/compat-test

index 5231173..6ecf311 100755 (executable)
@@ -248,6 +248,7 @@ $CRYPTSETUP luksOpen -d $KEYE $LOOPDEV $DEV_NAME || fail
 $CRYPTSETUP -q luksClose  $DEV_NAME || fail
 # open by volume key
 echo "key0" | $CRYPTSETUP -q luksFormat -s 256 --master-key-file $KEY1 $LOOPDEV || fail
+$CRYPTSETUP luksOpen --master-key-file /dev/urandom $LOOPDEV $DEV_NAME 2>/dev/null && fail
 $CRYPTSETUP luksOpen --master-key-file $KEY1 $LOOPDEV $DEV_NAME || fail
 $CRYPTSETUP -q luksClose  $DEV_NAME || fail