Skip to content

Commit 146b981

Browse files
authored
Silence system utils tests in emscripten python.sh (#133044)
Ensure that checks for system functions don't leak onto stdout on failure.
1 parent 6985e2e commit 146b981

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tools/wasm/emscripten/__main__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -248,10 +248,10 @@ def configure_emscripten_python(context, working_dir):
248248
249249
# Macs come with FreeBSD coreutils which doesn't have the -s option
250250
# so feature detect and work around it.
251-
if which grealpath > /dev/null; then
251+
if which grealpath > /dev/null 2>&1; then
252252
# It has brew installed gnu core utils, use that
253253
REALPATH="grealpath -s"
254-
elif which realpath > /dev/null && realpath --version > /dev/null 2> /dev/null && realpath --version | grep GNU > /dev/null; then
254+
elif which realpath > /dev/null 2>&1 && realpath --version > /dev/null 2>&1 && realpath --version | grep GNU > /dev/null 2>&1; then
255255
# realpath points to GNU realpath so use it.
256256
REALPATH="realpath -s"
257257
else

0 commit comments

Comments
 (0)