summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMilan Broz <gmazyland@gmail.com>2012-06-19 18:40:38 +0200
committerMilan Broz <gmazyland@gmail.com>2012-06-19 18:40:38 +0200
commitbe5473f24207f17a0cb0d18bb377cdaed5da5424 (patch)
tree99f18b772312c99c8b880ac42fe468755fc69b6a /tests
parent527c0fe4f9ec96ebe81f1618a2215ceb8e532655 (diff)
downloadcryptsetup-be5473f24207f17a0cb0d18bb377cdaed5da5424.tar.gz
cryptsetup-be5473f24207f17a0cb0d18bb377cdaed5da5424.tar.bz2
cryptsetup-be5473f24207f17a0cb0d18bb377cdaed5da5424.zip
Fix verity test.
(Writing just one byte from urandom means, that there is still high probability the byte will be the same and it will cause no data corruption :-)
Diffstat (limited to 'tests')
-rwxr-xr-xtests/verity-compat-test6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/verity-compat-test b/tests/verity-compat-test
index 55a7df4..ddb7398 100755
--- a/tests/verity-compat-test
+++ b/tests/verity-compat-test
@@ -111,14 +111,14 @@ function check_root_hash() # $1 size, $2 hash, $3 salt, $4 version, $5 hash, [$6
case $fail in
data)
- dd if=/dev/urandom of=$LOOPDEV1 bs=1 seek=3456 count=1 2>/dev/null
+ dd if=/dev/urandom of=$LOOPDEV1 bs=1 seek=3456 count=8 2>/dev/null
TXT="data_dev"
;;
hash)
if [ -z "$LOOPDEV2" ] ; then
- dd if=/dev/urandom of=$LOOPDEV1 bs=1 seek=$((8193 + $4)) count=1 2>/dev/null
+ dd if=/dev/urandom of=$LOOPDEV1 bs=1 seek=$((8193 + $4)) count=8 2>/dev/null
else
- dd if=/dev/urandom of=$LOOPDEV2 bs=1 seek=8193 count=1 2>/dev/null
+ dd if=/dev/urandom of=$LOOPDEV2 bs=1 seek=8193 count=8 2>/dev/null
fi
TXT="hash_dev"
;;