btrfs-progs: tests: Make fsck-test/013 compatible with lowmem mode

fsck-tests/013-extent-tree-rebuild uses "--init-extent-tree", which
implies "--repair".

But the test script doesn't specify "--repair" for lowmem mode test to
detect it.

Add it so lowmem mode test can be happy with it.

Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
Qu Wenruo 2017-02-21 16:34:35 +08:00 committed by David Sterba
parent 6203e63672
commit 381b43a020

View File

@ -36,7 +36,7 @@ test_extent_tree_rebuild()
$SUDO_HELPER $TOP/btrfs check $TEST_DEV >& /dev/null && \
_fail "btrfs check should detect failure"
run_check $SUDO_HELPER $TOP/btrfs check --init-extent-tree $TEST_DEV
run_check $SUDO_HELPER $TOP/btrfs check --repair --init-extent-tree $TEST_DEV
run_check $SUDO_HELPER $TOP/btrfs check $TEST_DEV
}