Whamcloud - gitweb
LU-9260 test: Use the correct mount device when test against lustre
[fs/lustre-release.git] / lustre / tests / posix.sh
index 19293f5..429b93d 100755 (executable)
@@ -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 $@
@@ -128,7 +137,7 @@ test_1() {
        fi
 
        log "Run POSIX test against lustre filesystem"
-       run_posix $MOUNT compare || \
+       run_posix $MOUNT $MGSNID $FSNAME compare ||
                error_noexit "Run POSIX testsuite on $MOUNT failed"
 
        [[ -d "$MOUNT/TESTROOT" ]] && rm -fr $MOUNT/TESTROOT