btrfs-progs: tests: mkfs/002 and 003: use TEST_DEV instead of IMAGE

As we don't know what's the TEST_DEV like, use the explicit mkfs limit.

Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
David Sterba 2017-03-13 17:52:20 +01:00
parent b7eb8f7650
commit d4eb5a77d7
2 changed files with 2 additions and 4 deletions

View File

@ -8,6 +8,5 @@ check_prereq mkfs.btrfs
setup_root_helper
run_check truncate -s 512M $IMAGE
mixed=$(run_check_stdout $TOP/mkfs.btrfs -n 64k -f $IMAGE | egrep 'Data|Metadata')
mixed=$(run_check_stdout "$TOP/mkfs.btrfs" -b 512M -n 64k -f "$TEST_DEV" | egrep 'Data|Metadata')
echo "$mixed" | grep -q -v 'Data+Metadata:' || _fail "unexpected: created a mixed-bg filesystem"

View File

@ -6,7 +6,6 @@ source $TOP/tests/common
check_prereq mkfs.btrfs
run_check truncate -s 512M $IMAGE
run_mayfail $TOP/mkfs.btrfs -f -M -s 4096 -n 16384 "$IMAGE" && _fail
run_mayfail "$TOP/mkfs.btrfs" -b 512M -f -M -s 4096 -n 16384 "$TEST_DEV" && _fail
exit 0