btrfs-progs/tests/misc-tests
Zhao Lei d4d500d341 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:
  convert-tests.sh: lack of mkdir
  fsck-tests/012-leaf-corruption/test.sh: unnecessary mkdir
  fsck-tests/013-extent-tree-rebuild/test.sh: 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 <zhaolei@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.com>
2015-09-01 14:02:48 +02:00
..
001-btrfstune-features btrfs-progs: tests: Introduce init_env to initialize common env variant 2015-09-01 14:02:48 +02:00
002-uuid-rewrite btrfs-progs: tests: Introduce init_env to initialize common env variant 2015-09-01 14:02:48 +02:00
003-zero-log btrfs-progs: tests: Introduce init_env to initialize common env variant 2015-09-01 14:02:48 +02:00
004-shrink-fs btrfs-progs: inspect: add command min-dev-size 2015-08-31 19:25:08 +02:00
005-convert-progress-thread-crash btrfs-progs: Introduce a misc test for thread conflict in btrfs-convert 2015-08-31 19:25:11 +02:00
006-image-on-missing-device btrfs-progs: tests, verify that btrfs-image works on a missing device 2015-08-31 19:25:13 +02:00
007-subvolume-sync btrfs-progs: tests: Introduce subvolume sync test 2015-08-31 19:25:14 +02:00