mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
Silence system utils tests in emscripten python.sh (#133044)
Ensure that checks for system functions don't leak onto stdout on failure.
This commit is contained in:
parent
6985e2e6de
commit
146b981f76
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue