From: Elena Gryaznova Date: Thu, 16 Jul 2015 14:29:44 +0000 (+0300) Subject: LU-6857 tests: TF_FAIL is not initialised X-Git-Tag: 2.7.58~50 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=refs%2Fchanges%2F17%2F15617%2F2;p=fs%2Flustre-release.git LU-6857 tests: TF_FAIL is not initialised TF_FAIL is initialised in auster only, this leads to t-f failure "touch: missing file operand" if the suites run not under auster control. DEFAULT_SUITES is initialised in acceptance-small only, this leads to garbage summary message printed. Patch adds export TF_FAIL to init_test_env() and skips useless summary printing for the case when suites run not under acceptance-small control. Signed-off-by: Elena Gryaznova Xyratex-bug-id: MRP-2116 Reviewed-by: Vladimir Saveliev Change-Id: I047aae3b7c6f7d75e98e7862a7f00fd2d75d8b1f Reviewed-on: http://review.whamcloud.com/15617 Tested-by: Jenkins Reviewed-by: Jian Yu Tested-by: Maloo Reviewed-by: Wei Liu Reviewed-by: Oleg Drokin --- diff --git a/lustre/tests/test-framework.sh b/lustre/tests/test-framework.sh index 9a41a39..9bc0299 100755 --- a/lustre/tests/test-framework.sh +++ b/lustre/tests/test-framework.sh @@ -71,6 +71,7 @@ usage() { print_summary () { trap 0 + [ -z "$DEFAULT_SUITES"] && return 0 [ "$TESTSUITE" == "lfsck" ] && return 0 [ -n "$ONLY" ] && echo "WARNING: ONLY is set to $(echo $ONLY)" local details @@ -338,6 +339,8 @@ init_test_env() { if ! $RPC_MODE; then rm -f $TMP/*active fi + + export TF_FAIL=${TF_FAIL:-$TMP/tf.fail} } check_cpt_number() {