changeset 5268:277b45cf0dda

tests: silence potential warnings about uname -o The option is not supported on the BSDs, but also not relevant as it is only used to detect msys.
author Joerg Sonnenberger <joerg@bec.de>
date Thu, 09 Apr 2020 14:49:31 +0200
parents fbe07b1cf5d4
children baa0b481eec5
files tests/testlib/pythonpath.sh
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tests/testlib/pythonpath.sh	Fri May 01 21:05:37 2020 +0200
+++ b/tests/testlib/pythonpath.sh	Thu Apr 09 14:49:31 2020 +0200
@@ -3,7 +3,7 @@
 export SRCDIR="`dirname $TESTDIR`"
 if [ -n "$PYTHONPATH" ]; then
     export HGTEST_ORIG_PYTHONPATH=$PYTHONPATH
-    if uname -o | grep -q Msys; then
+    if uname -o 2> /dev/null | grep -q Msys; then
         export PYTHONPATH="$SRCDIR;$PYTHONPATH"
     else
         export PYTHONPATH=$SRCDIR:$PYTHONPATH