Patchwork [1,of,2,v3] tests: exclude bundled pywatchman from test-check-pyflakes

login
register
mail settings
Submitter via Mercurial-devel
Date Dec. 22, 2016, 7:32 p.m.
Message ID <17f51203fdeb5f89634d.1482435131@dev7794.prn1.facebook.com>
Download mbox | patch
Permalink /patch/18011/
State Accepted
Headers show

Comments

via Mercurial-devel - Dec. 22, 2016, 7:32 p.m.
# HG changeset patch
# User Zack Hricz <zphricz@fb.com>
# Date 1482433679 28800
#      Thu Dec 22 11:07:59 2016 -0800
# Node ID 17f51203fdeb5f89634d60505da663cc2c34d2a3
# Parent  ea3540e66fd83ee6564064b02171c3732d181c72
tests: exclude bundled pywatchman from test-check-pyflakes

The code under pywatchman used to be excluded from test-check-code and
test-check-pyflakes through the magic string "no-check-code". Now that
test-check-code excludes the pywatchman directory entirely, the directory
should also be excluded from test-check-pyflakes.

Patch

diff --git a/tests/test-check-pyflakes.t b/tests/test-check-pyflakes.t
--- a/tests/test-check-pyflakes.t
+++ b/tests/test-check-pyflakes.t
@@ -6,7 +6,7 @@ 
 run pyflakes on all tracked files ending in .py or without a file ending
 (skipping binary file random-seed)
 
-  $ hg locate 'set:**.py or grep("^#!.*python")' \
+  $ hg locate 'set:**.py or grep("^#!.*python")' -X hgext/fsmonitor/pywatchman \
   > -X mercurial/pycompat.py \
   > 2>/dev/null \
   > | xargs pyflakes 2>/dev/null | "$TESTDIR/filterpyflakes.py"