From: Yang Sheng Date: Fri, 4 Dec 2015 06:22:12 +0000 (+0800) Subject: LU-7479 tests: fix lustre-rsync-test test_2a on SLES12 X-Git-Tag: 2.7.66~51 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=ef919b4b0a47d43f92677980fe26767bb4451e71;p=fs%2Flustre-release.git LU-7479 tests: fix lustre-rsync-test test_2a on SLES12 In sles12, ldd output has a wrong format for linux-vdso.so.1. Since it is a virtual file so strip out is reasonable. Signed-off-by: Yang Sheng Change-Id: I335139c4278db771a0c313573dde41eb9b96d649 Reviewed-on: http://review.whamcloud.com/17475 Tested-by: Jenkins Reviewed-by: Bob Glossman Reviewed-by: Jian Yu Tested-by: Maloo Reviewed-by: Oleg Drokin --- diff --git a/lustre/tests/rundbench b/lustre/tests/rundbench index 2b17ebd..601b74c 100755 --- a/lustre/tests/rundbench +++ b/lustre/tests/rundbench @@ -59,7 +59,9 @@ fi if [ "x$CHROOT" == "xyes" ]; then echo "copying necessary libs to $DIR" cp `which dbench` $DIR - LIBS71=$(ldd $DIR/dbench|sed -e 's/\t*//' -e 's/.*=> //' -e 's/ .*//' -e 's/^\///') + LIBS71=$(ldd $DIR/dbench | + sed -e 's/\t*//' -e 's/.*=> //' -e 's/ .*//' -e 's/^\///' | + grep -v 'linux-vdso.so.1') tar -C / -chf - $LIBS71 | tar -C $DIR -xvf - if [ "${PIPESTATUS[*]}" != "0 0" ]; then echo "can't copy libs $LIBS71 to $DIR"