Whamcloud - gitweb
LU-19051 config: silent spurious messages while checking mpitests 03/59403/2
authorAurelien Degremont <adegremont@nvidia.com>
Fri, 23 May 2025 14:00:23 +0000 (16:00 +0200)
committerOleg Drokin <green@whamcloud.com>
Sat, 7 Jun 2025 23:05:25 +0000 (23:05 +0000)
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 <adegremont@nvidia.com>
Change-Id: If536aa1d04f0d641a7b2a721869261c85907e084
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/59403
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Shaun Tancheff <shaun.tancheff@hpe.com>
Reviewed-by: Timothy Day <timday@amazon.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
config/lustre-core.m4

index 56442f3..5300afa 100644 (file)
@@ -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