path: root/tests/fsck-tests/013-extent-tree-rebuild/
diff options
authorZhao Lei <>2015-08-31 13:04:36 +0800
committerDavid Sterba <>2015-09-01 14:02:48 +0200
commitd4d500d341a352c882169a67b1a0c8119ed4257e (patch)
tree47c4fb57894d8f12bc473558752d3ced29bea477 /tests/fsck-tests/013-extent-tree-rebuild/
parent665dc49ef6eee19cc5d31270d13531e9b248424a (diff)
btrfs-progs: tests: Introduce init_env to initialize common env variant
For example, $TEST_DIR is common used in severial tests, and have duplicated code for initialize. These duplicated code not only benifits harddisk vendor, but have inconsistent details, as: lack of mkdir fsck-tests/012-leaf-corruption/ unnecessary mkdir fsck-tests/013-extent-tree-rebuild/ unnecessary init misc-tests/XXX ... And severial error message: _fail "unable to create mount point on $TEST_MNT" _fail "failed to create mount point" ... This patch move initizlizaton of $TEST_DIR to common init_env(), to avoid above problem, and init_env() can be used to add more things in future. Signed-off-by: Zhao Lei <> Signed-off-by: David Sterba <>
Diffstat (limited to 'tests/fsck-tests/013-extent-tree-rebuild/')
1 files changed, 0 insertions, 5 deletions
diff --git a/tests/fsck-tests/013-extent-tree-rebuild/ b/tests/fsck-tests/013-extent-tree-rebuild/
index 88a66cc2..b7909d28 100755
--- a/tests/fsck-tests/013-extent-tree-rebuild/
+++ b/tests/fsck-tests/013-extent-tree-rebuild/
@@ -7,11 +7,6 @@ check_prereq mkfs.btrfs
prepare_test_dev 1G
-if [ -z $TEST_MNT ];then
- echo " [NOTRUN] extent tree rebuild, need TEST_MNT variant"
- exit 0
# test whether fsck can rebuild a corrupted extent tree