From 95c0d6fa814657b04375d2276e8c1a4d484d028d Mon Sep 17 00:00:00 2001 From: James Nunez Date: Tue, 9 May 2017 10:36:27 -0600 Subject: [PATCH] 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 --- lustre/tests/posix.sh | 9 +++++++++ 1 file changed, 9 insertions(+) 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 $@ -- 1.8.3.1