Patchwork [2,of,3,evolve-ext] test-pyflakes: use '/' when printing the files to check

login
register
mail settings
Submitter Matt Harbison
Date Jan. 5, 2019, 1:19 a.m.
Message ID <02ef02957d87aaae2cb0.1546651183@Envy>
Download mbox | patch
Permalink /patch/37479/
State Accepted
Headers show

Comments

Matt Harbison - Jan. 5, 2019, 1:19 a.m.
# HG changeset patch
# User Matt Harbison <matt_harbison@yahoo.com>
# Date 1546645793 18000
#      Fri Jan 04 18:49:53 2019 -0500
# Node ID 02ef02957d87aaae2cb0185de478af39907a8298
# Parent  a299a2d93b5aafc73fea2e6bee7ef3e98b7d33b1
test-pyflakes: use '/' when printing the files to check

If paths are printed with '\', `xargs` sees the parts allsmooshedtogether, and
pyflakes errors out.

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
@@ -7,5 +7,5 @@ 
 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")) - removed()' 2>/dev/null \
+  $ hg locate -I 'set:(**.py or grep("^#!.*python")) - removed()' 2>/dev/null \
   > | xargs pyflakes 2>/dev/null