From: Chris Horn Date: Thu, 29 Apr 2021 17:45:56 +0000 (-0500) Subject: LU-14653 tests: Correct include path for sanity-lnet test_300 X-Git-Tag: 2.14.53~100 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=6fc63cd993662c2fe5af9a5e0a0ce37036aff19d;p=fs%2Flustre-release.git LU-14653 tests: Correct include path for sanity-lnet test_300 We need to supply an appropriate include path for sanity-lnet test_300 when we're running in tree. Test-Parameters: trivial testlist=sanity-lnet env=ONLY=300 Signed-off-by: Chris Horn Change-Id: Ia04a713ef6f1989507a77a618328d31f74d48e0d Reviewed-on: https://review.whamcloud.com/43500 Reviewed-by: James Simmons Tested-by: jenkins Tested-by: Maloo Reviewed-by: Alexander Boyko Reviewed-by: Oleg Drokin --- diff --git a/lustre/tests/sanity-lnet.sh b/lustre/tests/sanity-lnet.sh index 485e105..8d232ff 100755 --- a/lustre/tests/sanity-lnet.sh +++ b/lustre/tests/sanity-lnet.sh @@ -2004,9 +2004,11 @@ test_300() { cleanup_lnet || exit 1 load_lnet + local cc_args="-Wall -Werror -std=c99 -c -x c /dev/null -o $out" if ! [[ -d $prefix ]]; then # Assume we're running in tree and fixup the include path. prefix=$LUSTRE/../lnet/include/uapi/linux/lnet + cc_args+=" -I $LUSTRE/../lnet/include/uapi" fi for header in $prefix/*.h; do @@ -2014,7 +2016,8 @@ test_300() { continue fi - $CC -Wall -Werror -std=c99 -include $header -c -x c /dev/null -o $out || + echo "$CC $cc_args -include $header" + $CC $cc_args -include $header || error "cannot compile '$header'" done rm -f $out