From c5998808871bc4254635c05f6c343e8f46b5cc95 Mon Sep 17 00:00:00 2001 From: Elena Gryaznova Date: Thu, 16 Jul 2015 17:29:44 +0300 Subject: [PATCH] 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 --- lustre/tests/test-framework.sh | 3 +++ 1 file changed, 3 insertions(+) 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() { -- 1.8.3.1