From: Lukas <33507994+Lukasdoe@users.noreply.github.com> Date: Sun, 27 Apr 2025 22:13:02 +0000 (+0200) Subject: Silence system utils tests in emscripten python.sh (#133044) X-Git-Tag: v3.14.0b1~253 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=146b981f764cc8975910066096dc2f6cb33beec6;p=thirdparty%2FPython%2Fcpython.git Silence system utils tests in emscripten python.sh (#133044) Ensure that checks for system functions don't leak onto stdout on failure. --- 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