From: James Nunez Date: Tue, 9 May 2017 16:36:27 +0000 (-0600) Subject: LU-6707 tests: Add ability to skip tests in POSIX X-Git-Tag: 2.9.59~85 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=95c0d6fa814657b04375d2276e8c1a4d484d028d;p=fs%2Flustre-release.git LU-6707 tests: Add ability to skip tests in POSIX Although the POSIX test suite only has a single sub test, there are some times when you may need to exclude this test from being run. We need to add the ability to skip subtests in the POSIX test suite. Test-Parameters: trivial Signed-off-by: James Nunez Change-Id: Idb051bc7ced02c9f09190874b5e7dacb3c6ad6ce Reviewed-on: https://review.whamcloud.com/27012 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Saurabh Tandan Reviewed-by: Wei Liu Reviewed-by: Oleg Drokin --- diff --git a/lustre/tests/posix.sh b/lustre/tests/posix.sh index 19293f5..4c36a9a 100755 --- a/lustre/tests/posix.sh +++ b/lustre/tests/posix.sh @@ -2,6 +2,15 @@ #set -vx set -e +ONLY=${ONLY:-"$*"} + +# bug number for skipped test: +ALWAYS_EXCEPT="$POSIX_EXCEPT" +# UPDATE THE COMMENT ABOVE WITH BUG NUMBERS WHEN CHANGING ALWAYS_EXCEPT! + +[ "$ALWAYS_EXCEPT$EXCEPT" ] && + echo "Skipping tests: $ALWAYS_EXCEPT $EXCEPT" + LUSTRE=${LUSTRE:-$(cd $(dirname $0)/..; echo $PWD)} . $LUSTRE/tests/test-framework.sh init_test_env $@