btrfs-progs: tests: mkfs/020: properly set checksum from parameter

The value of checksum was not set making mkfs fail.

Signed-off-by: Marcos Paulo de Souza <mpdesouza@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
Marcos Paulo de Souza 2019-12-05 12:36:46 -03:00 committed by David Sterba
parent d39ab9fafe
commit 8f382bc75e
1 changed files with 3 additions and 0 deletions

View File

@ -12,6 +12,9 @@ prepare_test_dev
test_mkfs_mount_checksum()
{
local csum
csum="$1"
run_check_stdout $SUDO_HELPER "$TOP/mkfs.btrfs" -f --csum "$csum" "$TEST_DEV" | grep -q "Checksum:.*$csum"
run_check $SUDO_HELPER "$TOP/btrfs" inspect-internal dump-super "$TEST_DEV"
run_check $SUDO_HELPER "$TOP/btrfs" check "$TEST_DEV"