tests: adapt test-check-pylint to run on Windows stable
authorMatt Harbison <matt_harbison@yahoo.com>
Thu, 31 May 2018 22:15:52 -0400
branchstable
changeset 38180 6ae62d62c3f6
parent 38179 6fb76897e066
child 38181 712d6f535fc9
tests: adapt test-check-pylint to run on Windows The line endings are explicitly converted because this was ending up with '\r (no-eol) (esc)' lines, in addition to the usual '\r (esc)' lines. I've seen the fakerc output on other recently installed systems though (10.13 and/or Fedora 26). Unfortunately, the output here uses '\\' on Windows, so glob away the whole path.
tests/test-check-pylint.t
--- a/tests/test-check-pylint.t	Thu May 31 22:11:47 2018 -0400
+++ b/tests/test-check-pylint.t	Thu May 31 22:15:52 2018 -0400
@@ -14,7 +14,8 @@
   >   --enable=W0102,C0321 \
   >   --reports=no \
   >   --ignore=thirdparty \
-  >   mercurial hgdemandimport hgext hgext3rd
+  >   mercurial hgdemandimport hgext hgext3rd | sed 's/\r$//'
+  Using config file *fakerc (glob) (?)
    (?)
   ------------------------------------ (?)
   Your code has been rated at 10.00/10 (?)