view tests/test-check-config-hg.t @ 25866:8c1d7a0e737b stable

test-check-config: convert directory separators to '/' for MSYS The output of the files command uses native separator. MSYS then seems to drop the '\' on Windows when invoking python: --- c:/Users/Matt/Projects/hg/tests/test-check-config-hg.t +++ c:/Users/Matt/Projects/hg/tests/test-check-config-hg.t.err @@ -6,22 +6,10 @@ $ hg files "set:(**.py or **.txt) - tests/**" | > xargs python contrib/check-config.py Traceback (most recent call last): File "contrib/check-config.py", line 93, in <module> sys.exit(main(sys.argv[1:])) File "contrib/check-config.py", line 24, in main for l in open(f): IOError: [Errno 2] No such file or directory: 'contriball-revsets.txt' [123]
author Matt Harbison <matt_harbison@yahoo.com>
date Mon, 20 Jul 2015 23:33:57 -0400
parents eabba9c75061
children 9c98fe1416c2
line wrap: on
line source

#require test-repo

  $ cd "$TESTDIR"/..

New errors are not allowed. Warnings are strongly discouraged.

  $ hg files "set:(**.py or **.txt) - tests/**" | sed 's|\\|/|g' |
  >   xargs python contrib/check-config.py
  undocumented: convert.cvsps.cache (bool) [True]
  undocumented: convert.cvsps.fuzz (str) [60]
  undocumented: convert.cvsps.mergefrom (str)
  undocumented: convert.cvsps.mergeto (str)
  undocumented: convert.git.remoteprefix (str) ['remote']
  undocumented: convert.git.similarity (int) [50]
  undocumented: convert.hg.clonebranches (bool)
  undocumented: convert.hg.ignoreerrors (bool)
  undocumented: convert.hg.revs (str)
  undocumented: convert.hg.saverev (bool)
  undocumented: convert.hg.sourcename (str)
  undocumented: convert.hg.startrev (str)
  undocumented: convert.hg.tagsbranch (str) ['default']
  undocumented: convert.hg.usebranchnames (bool) [True]
  undocumented: convert.localtimezone (bool)
  undocumented: convert.p4.startrev (str)
  undocumented: convert.skiptags (bool)
  undocumented: convert.svn.debugsvnlog (bool) [True]
  undocumented: convert.svn.startrev (str)