Patchwork [3,of,3,v2] tests: mark test-check-pyflakes.t as requiring hg1.0+

login
register
mail settings
Submitter timeless
Date May 11, 2016, 12:54 p.m.
Message ID <2c20d886b44a4fbbd343.1462971241@gcc2-power8.osuosl.org>
Download mbox | patch
Permalink /patch/15016/
State Accepted
Delegated to: Yuya Nishihara
Headers show

Comments

timeless - May 11, 2016, 12:54 p.m.
# HG changeset patch
# User timeless <timeless@mozdev.org>
# Date 1462440369 0
#      Thu May 05 09:26:09 2016 +0000
# Node ID 2c20d886b44a4fbbd343330da2f4bc76f01330a3
# Parent  12ab239a9766765ae79d97eea3a743e2344d1974
# Available At bb://timeless/mercurial-crew
#              hg pull bb://timeless/mercurial-crew -r 2c20d886b44a
tests: mark test-check-pyflakes.t as requiring hg1.0+

hg does not yet run with py3, so if you try:
./run-tests.py --local test-check-pyflakes.t

... it will try to run the local hg, which does not work
and thus, hg locate will return no output to stdout (and
stderr is sent to /dev/null).

If you do:
./run-tests.py --with-hg=~/bin/hg test-check-pyflakes.t
Then it should work, if your hg is new enough to have
a locate command (hg0.6 does not have locate).

Patch

diff -r 12ab239a9766 -r 2c20d886b44a tests/test-check-pyflakes.t
--- a/tests/test-check-pyflakes.t	Thu May 05 09:12:26 2016 +0000
+++ b/tests/test-check-pyflakes.t	Thu May 05 09:26:09 2016 +0000
@@ -1,4 +1,4 @@ 
-#require test-repo pyflakes
+#require test-repo pyflakes hg10
 
   $ cd "`dirname "$TESTDIR"`"