diff options
author | Milan Broz <gmazyland@gmail.com> | 2015-07-02 08:13:42 +0200 |
---|---|---|
committer | Milan Broz <gmazyland@gmail.com> | 2015-07-02 08:13:42 +0200 |
commit | a57f1b1b649837de66b23e3ed1a6310b70d37e00 (patch) | |
tree | a09b1adfd516c68b59464b9c2c01569c1a9e651e | |
parent | 1a50fee1d070dc19d7dbe7e5d64b6a274f01b81f (diff) | |
download | cryptsetup-a57f1b1b649837de66b23e3ed1a6310b70d37e00.tar.gz |
Silence repeated device removal in verity test.
-rwxr-xr-x | tests/verity-compat-test | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/verity-compat-test b/tests/verity-compat-test index e9c1101..77c6b14 100755 --- a/tests/verity-compat-test +++ b/tests/verity-compat-test @@ -9,7 +9,7 @@ IMG_HASH=verity-hash function remove_mapping() { - [ -b /dev/mapper/$DEV_NAME ] && dmsetup remove $DEV_NAME + [ -b /dev/mapper/$DEV_NAME ] && dmsetup remove $DEV_NAME >/dev/null 2>&1 [ ! -z "$LOOPDEV1" ] && losetup -d $LOOPDEV1 >/dev/null 2>&1 rm -f $IMG $IMG_HASH $DEV_OUT >/dev/null 2>&1 LOOPDEV1="" @@ -102,7 +102,7 @@ function check_root_hash() # $1 size, $2 hash, $3 salt, $4 version, $5 hash, [$6 dmsetup status $DEV_NAME | grep "verity V" >/dev/null || fail echo -n "[in-kernel verify]" - $VERITYSETUP remove $DEV_NAME || fail + $VERITYSETUP remove $DEV_NAME >/dev/null 2>&1 || fail case $fail in data) @@ -126,7 +126,7 @@ function check_root_hash() # $1 size, $2 hash, $3 salt, $4 version, $5 hash, [$6 dd if=/dev/mapper/$DEV_NAME of=/dev/null bs=$1 2>/dev/null dmsetup status $DEV_NAME | grep "verity V" >/dev/null && \ fail "in-kernel check for $TXT corruption" - $VERITYSETUP remove $DEV_NAME || fail "deactivation" + $VERITYSETUP remove $DEV_NAME >/dev/null 2>&1 || fail "deactivation" echo "[$TXT corruption]" done done |