From: James Nunez Date: Thu, 6 Jun 2019 13:48:13 +0000 (-0600) Subject: LU-11673 tests: add space before ']' in test-framework X-Git-Tag: 2.12.56~71 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=54e011a729fd656ae8568192763afe12425cd05e LU-11673 tests: add space before ']' in test-framework The test command '[' expects spaces before all arguments including the closing ']'. Add a space before the closing ']' in the function print_summary() in test-framework.sh. Signed-off-by: James Nunez Change-Id: If2365cb5f2b9c003949c6224997644c61341fe35 Reviewed-on: https://review.whamcloud.com/35079 Reviewed-by: Andreas Dilger Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Wei Liu --- diff --git a/lustre/tests/test-framework.sh b/lustre/tests/test-framework.sh index 6227c18..1315d8a 100755 --- a/lustre/tests/test-framework.sh +++ b/lustre/tests/test-framework.sh @@ -95,13 +95,14 @@ usage() { } print_summary () { - trap 0 - [ -z "$DEFAULT_SUITES"] && return 0 - [ -n "$ONLY" ] && echo "WARNING: ONLY is set to $(echo $ONLY)" - local details - local form="%-13s %-17s %-9s %s %s\n" - printf "$form" "status" "script" "Total(sec)" "E(xcluded) S(low)" - echo "------------------------------------------------------------------------------------" + trap 0 + [ -z "$DEFAULT_SUITES" ] && return 0 + [ -n "$ONLY" ] && echo "WARNING: ONLY is set to $(echo $ONLY)" + local details + local form="%-13s %-17s %-9s %s %s\n" + + printf "$form" "status" "script" "Total(sec)" "E(xcluded) S(low)" + echo "---------------------------------------------------------------" for O in $DEFAULT_SUITES; do O=$(echo $O | tr "-" "_" | tr "[:lower:]" "[:upper:]") [ "${!O}" = "no" ] && continue || true