Mercurial > hg-stable
changeset 16872:40d930848fd0
hghave: wrap command in 'sh -c "..."' for has_pyflakes()
Without this, the has_pyflakes() check always fails in MSYS on Windows.
author | Adrian Buehlmann <adrian@cadifra.com> |
---|---|
date | Sun, 27 May 2012 18:25:04 +0200 |
parents | d566aa319d5f |
children | 37e081609828 |
files | tests/hghave |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/hghave Mon Jun 04 17:57:57 2012 -0500 +++ b/tests/hghave Sun May 27 18:25:04 2012 +0200 @@ -202,7 +202,7 @@ os.rmdir(d) def has_pyflakes(): - return matchoutput('echo "import re" 2>&1 | pyflakes', + return matchoutput("sh -c \"echo 'import re' 2>&1 | pyflakes\"", r"<stdin>:1: 're' imported but unused", True)