Whamcloud - gitweb
b=19616
authorgrev <grev>
Fri, 4 Dec 2009 21:01:18 +0000 (21:01 +0000)
committergrev <grev>
Fri, 4 Dec 2009 21:01:18 +0000 (21:01 +0000)
o=Walter.Poxon
i=grev
read the list of tests to except from the file if it exist

lustre/tests/test-framework.sh

index 747d111..618437f 100644 (file)
@@ -23,6 +23,16 @@ export QUOTA_AUTO=1
 LUSTRE=${LUSTRE:-$(cd $(dirname $0)/..; echo $PWD)}
 . $LUSTRE/tests/functions.sh
 
+LUSTRE_TESTS_CFG_DIR=${LUSTRE_TESTS_CFG_DIR:-${LUSTRE}/tests/cfg}
+
+EXCEPT_LIST_FILE=${EXCEPT_LIST_FILE:-${LUSTRE_TESTS_CFG_DIR}/tests-to-skip.sh}
+
+if [ -f "$EXCEPT_LIST_FILE" ]; then
+    echo "Reading test skip list from $EXCEPT_LIST_FILE"
+    cat $EXCEPT_LIST_FILE
+    . $EXCEPT_LIST_FILE
+fi
+
 assert_DIR () {
     local failed=""
     [[ $DIR/ = $MOUNT/* ]] || \