tests: silence potential warnings about uname -o
authorJoerg Sonnenberger <joerg@bec.de>
Thu, 09 Apr 2020 14:49:31 +0200
changeset 5316 277b45cf0dda
parent 5313 fbe07b1cf5d4
child 5317 baa0b481eec5
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.
tests/testlib/pythonpath.sh
--- 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