Whamcloud - gitweb
LU-9102 test: Include specific headers needed by Posix suite 06/25606/8
authorWei Liu <wei3.liu@intel.com>
Thu, 23 Feb 2017 17:07:41 +0000 (09:07 -0800)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 23 Mar 2017 01:47:56 +0000 (01:47 +0000)
Change prefix to the missing headers on el7

Change-Id: I79d59104a224ccf51795072e2a12da1a113cdaa0
Signed-off-by: Wei Liu <wei3.liu@intel.com>
Reviewed-on: https://review.whamcloud.com/25606
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Minh Diep <minh.diep@intel.com>
Reviewed-by: James Nunez <james.a.nunez@intel.com>
Reviewed-by: Jian Yu <jian.yu@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/tests/posix/posix.cfg

index 2f40b06..4cb72e3 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 ]] ||