From 1abd6b02eaf4b722b3c7dd9849b3bd4cad4bb616 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20D=C3=B6llerer?= Date: Sun, 27 Apr 2025 14:18:21 +0200 Subject: [PATCH] silence system utils tests in emscripten python.sh --- Tools/wasm/emscripten/__main__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tools/wasm/emscripten/__main__.py b/Tools/wasm/emscripten/__main__.py index 4a53e0bd1bee1b..849bd5de44eb7b 100644 --- a/Tools/wasm/emscripten/__main__.py +++ b/Tools/wasm/emscripten/__main__.py @@ -248,10 +248,10 @@ def configure_emscripten_python(context, working_dir): # Macs come with FreeBSD coreutils which doesn't have the -s option # so feature detect and work around it. - if which grealpath > /dev/null; then + if which grealpath > /dev/null 2>&1; then # It has brew installed gnu core utils, use that REALPATH="grealpath -s" - elif which realpath > /dev/null && realpath --version > /dev/null 2> /dev/null && realpath --version | grep GNU > /dev/null; then + elif which realpath > /dev/null 2>&1 && realpath --version > /dev/null 2>&1 && realpath --version | grep GNU > /dev/null 2>&1; then # realpath points to GNU realpath so use it. REALPATH="realpath -s" else