Whamcloud - gitweb
LU-296 Add missing code from auster/yaml port to b1_8
authorYu Jian <yujian@whamcloud.com>
Fri, 13 May 2011 04:50:54 +0000 (12:50 +0800)
committerJohann Lombardi <johann@whamcloud.com>
Fri, 13 May 2011 06:27:36 +0000 (23:27 -0700)
commit6f2c9a8ec8d4ef13d3b5b28ba514798587711986
tree1ed6f8da1612bea8c51890ce48b147194be1c970
parent88909813abcf62cd99c3a27315d6afb1ade3835e
LU-296 Add missing code from auster/yaml port to b1_8

Code related to defining and creating the $TF_FAIL file was missed in
the port of auster and yaml to b1_8. This patch adds the missing
code. Namely:

- Define TF_FAIL in acceptance-small.sh
- add 'touch $TF_FAIL' to the test-framework.sh ERR signal trap

Additionally, the file test for $TF_FAIL variable should be quoted in
acceptance-small.sh and auster.sh. Otherwise, if this variable is not
defined, bash will spit out something like

acceptance-small.sh: line 123: [: too many arguments

Bash variables should generally be quoted whenever they are referenced.
(see http://tldp.org/LDP/abs/html/quotingvar.html).

Signed-off-by: Chris Horn <hornc@cray.com>
Signed-off-by: Yu Jian <yujian@whamcloud.com>
Change-Id: I2071c859d00b8cd8bd423bf9f626b44352456191
Reviewed-on: http://review.whamcloud.com/516
Reviewed-by: Johann Lombardi <johann@whamcloud.com>
Tested-by: Hudson
lustre/tests/acceptance-small.sh
lustre/tests/auster.sh
lustre/tests/test-framework.sh