From db8699e0c9401e27f9c6018163674c7c3a0c7273 Mon Sep 17 00:00:00 2001 From: Wei Liu Date: Thu, 23 Feb 2017 09:07:41 -0800 Subject: [PATCH] LU-9102 test: Include specific headers needed by Posix suite Change prefix to the missing headers on el7 Change-Id: I79d59104a224ccf51795072e2a12da1a113cdaa0 Signed-off-by: Wei Liu Reviewed-on: https://review.whamcloud.com/25606 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Minh Diep Reviewed-by: James Nunez Reviewed-by: Jian Yu Reviewed-by: Oleg Drokin --- lustre/tests/posix/posix.cfg | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lustre/tests/posix/posix.cfg b/lustre/tests/posix/posix.cfg index 2f40b06..4cb72e3 100644 --- a/lustre/tests/posix/posix.cfg +++ b/lustre/tests/posix/posix.cfg @@ -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 ]] || -- 1.8.3.1