From: Aurelien Degremont Date: Fri, 23 May 2025 14:00:23 +0000 (+0200) Subject: LU-19051 config: silent spurious messages while checking mpitests X-Git-Tag: 2.16.56~5 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=a2e6846c52541da0ebb6642a336054513ecff444;p=fs%2Flustre-release.git LU-19051 config: silent spurious messages while checking mpitests When detecting mpicc configuration, do not print warnings or error messages in the middle of configure output. Test-Parameters: trivial Signed-off-by: Aurelien Degremont Change-Id: If536aa1d04f0d641a7b2a721869261c85907e084 Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/59403 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Andreas Dilger Reviewed-by: Shaun Tancheff Reviewed-by: Timothy Day Reviewed-by: Oleg Drokin --- diff --git a/config/lustre-core.m4 b/config/lustre-core.m4 index 56442f3..5300afa 100644 --- a/config/lustre-core.m4 +++ b/config/lustre-core.m4 @@ -5793,7 +5793,7 @@ AC_ARG_ENABLE([mpitests], case $enableval in yes) MPICC_WRAPPER="mpicc" - MPI_BIN=$(eval which $MPICC_WRAPPER | xargs dirname) + MPI_BIN=$(eval which $MPICC_WRAPPER 2>/dev/null | xargs -r dirname) ;; no) enable_mpitests="no" @@ -5801,13 +5801,13 @@ AC_ARG_ENABLE([mpitests], ;; *) MPICC_WRAPPER=$enableval - MPI_BIN=$(eval echo $MPICC_WRAPPER | xargs dirname) + MPI_BIN=$(eval echo $MPICC_WRAPPER | xargs -r dirname) ;; esac ], [ enable_mpitests="yes" MPICC_WRAPPER="mpicc" - MPI_BIN=$(eval which $MPICC_WRAPPER | xargs dirname) + MPI_BIN=$(eval which $MPICC_WRAPPER 2>/dev/null | xargs -r dirname) ]) if test "x$enable_mpitests" != "xno"; then