Re: [PATCH v2 1/4] btrfs-progs: tests: Introduce init_env to initialize common env variant

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Aug 31, 2015 at 01:04:36PM +0800, Zhao Lei wrote:
> 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@xxxxxxxxxxxxxx>

Applied, thanks.
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux