Whamcloud - gitweb
LU-814 tests: remove leading spaces from $WRITE_DISJOINT
authorYu Jian <yujian@whamcloud.com>
Tue, 22 May 2012 11:38:42 +0000 (19:38 +0800)
committerJohann Lombardi <johann@whamcloud.com>
Wed, 23 May 2012 15:11:19 +0000 (11:11 -0400)
commite92a9dd7a71bfcc33296a80e2e526ef86d38f750
treed21706df85c46a68aa5f32a2129b06952d05d1f7
parentbc88c4c9b820dced253dad8685a15896ab1a2c71
LU-814 tests: remove leading spaces from $WRITE_DISJOINT

In functions.sh, the WRITE_DISJOINT variable is defined as follows:

    WRITE_DISJOINT=${WRITE_DISJOINT:-\
        $(which write_disjoint 2> /dev/null || true)}

This will assign WRITE_DISJOINT with a value leading with spaces,
which causes "[: too many arguments" issue while checking the
variable. The PARALLEL_GROUPLOCK variable also has the same issue.
This patch fixes it.

Signed-off-by: Yu Jian <yujian@whamcloud.com>
Change-Id: I424af2acd4ef79ea67830010d17b6904769c2ca4
Reviewed-on: http://review.whamcloud.com/2866
Tested-by: Hudson
Reviewed-by: Minh Diep <mdiep@whamcloud.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Johann Lombardi <johann@whamcloud.com>
lustre/tests/functions.sh