btrfs-progs: use local btrfs-image in leaf corruption test
authorWorMzy Tykashi <wormzy.tykashi@gmail.com>
Wed, 8 Apr 2015 14:50:04 +0000 (15:50 +0100)
committerDavid Sterba <dsterba@suse.cz>
Thu, 9 Apr 2015 16:45:00 +0000 (18:45 +0200)
Currently this test uses the system btrfs-image. If there isn't a
btrfs-image on $PATH, the test fails. The test should be using the
locally compiled btrfs-image, not the system one.

Signed-off-by: WorMzy Tykashi <wormzy.tykashi@gmail.com>
Reviewed-by: Qu Wenruo <quwenruo@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
tests/fsck-tests/012-leaf-corruption/test.sh

index 4db4710..98e3185 100755 (executable)
@@ -37,7 +37,7 @@ generate_leaf_corrupt_no_data_ext()
        echo "generating leaf_corrupt_no_data_ext.btrfs-image" >> $RESULTS
        tar xJf ./no_data_extent.tar.xz || \
                _fail "failed to extract leaf_corrupt_no_data_ext.btrfs-image"
-       btrfs-image -r test.img.btrfs-image $dest || \
+       $TOP/btrfs-image -r test.img.btrfs-image $dest || \
                _fail "failed to extract leaf_corrupt_no_data_ext.btrfs-image"
 
        # leaf at 20832256 contains no regular data extent, clear its csum to