Whamcloud - gitweb
LU-13709 tests: test lfs mkdir -c without -i
[fs/lustre-release.git] / lustre / tests / posix / posix.cfg
index 2f40b06..13fcebd 100644 (file)
@@ -98,12 +98,15 @@ prep() {
     [[ -f $TEST_BIN ]] && rm -f $TEST_BIN
     [[ -d $INSTALL_DIR ]] && rm -rf $INSTALL_DIR
 
-       if egrep -q "CentOS|Red Hat|Fedora" /etc/issue; then
+       if egrep -q "CentOS|Red Hat|Fedora" /etc/redhat-release; then
                local prefix=/usr/lib/$(uname -m)-redhat-linux5E
                if egrep -q "Fedora" /etc/issue; then
                        prefix=/usr/arm-gp2x-linux
                fi
-
+               if grep -q "el7" <<<$(uname -r); then
+                       # Fix LU-9102
+                       prefix=/usr/local/lib/x86_64-redhat-linux5E
+               fi
                [[ -d /usr/include/bits ]] || mkdir -p /usr/include/bits
                [[ -d /usr/include/sys ]] || mkdir -p /usr/include/sys
                [[ -s /usr/include/stropts.h ]] ||
@@ -165,25 +168,28 @@ cleanup() {
 }
 
 run_posix() {
-    local MNTPNT=$1
-    local COMPARE=${2}
-    local compare=""
-    local rc=0
-    local cmd
-
-    [[ "x$COMPARE" != "x" ]] && compare="--compare-result"
-    # command to run posix test suite
-    cmd="TMP=/tmp/vsx0 TMPDIR=/tmp/vsx0 $POSIX_RUN --mountpt=$MNTPNT \
-        --posix-src=$POSIX_SRC --install-dir=$INSTALL_DIR \
-        --results-dir=$RESULT_DIR $compare 2>&1"
-
-    # run posix test suite
-    echo $cmd
-    if ! eval $cmd; then
-        rc=${PIPESTATUS[0]}
-    fi
+       local MNTPNT=$1
+       local MGSNID=$2
+       local FSNAME=$3
+       local COMPARE=${4}
+       local compare=""
+       local rc=0
+       local cmd
+
+       [[ "x$COMPARE" != "x" ]] && compare="--compare-result"
+       # command to run posix test suite
+       cmd="TMP=/tmp/vsx0 TMPDIR=/tmp/vsx0 $POSIX_RUN --mountpt=$MNTPNT \
+               --posix-src=$POSIX_SRC --install-dir=$INSTALL_DIR \
+               --results-dir=$RESULT_DIR --nospc-dev="$MGSNID:/$FSNAME" \
+               $compare 2>&1"
+
+       # run posix test suite
+       echo $cmd
+       if ! eval $cmd; then
+               rc=${PIPESTATUS[0]}
+       fi
 
-    return $rc
+       return $rc
 }
 
 setup_posix() {