btrfs-progs: tests: Make fsck-test/013 compatible with lowmem mode
authorQu Wenruo <quwenruo@cn.fujitsu.com>
Tue, 21 Feb 2017 08:34:35 +0000 (16:34 +0800)
committerDavid Sterba <dsterba@suse.com>
Wed, 8 Mar 2017 12:00:49 +0000 (13:00 +0100)
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>
tests/fsck-tests/013-extent-tree-rebuild/test.sh

index 37bdcd9..08c1e50 100755 (executable)
@@ -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
 }