From 146b981f764cc8975910066096dc2f6cb33beec6 Mon Sep 17 00:00:00 2001 From: Lukas <33507994+Lukasdoe@users.noreply.github.com> Date: Mon, 28 Apr 2025 00:13:02 +0200 Subject: [PATCH] Silence system utils tests in emscripten python.sh (#133044) Ensure that checks for system functions don't leak onto stdout on failure. --- 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 4a53e0bd1bee..849bd5de44eb 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 -- 2.47.3