##// END OF EJS Templates
test-check-help: fix to work on Windows...
Matt Harbison -
r31498:a248bbfa default
parent child Browse files
Show More
@@ -6,6 +6,9 b''
6 > from __future__ import absolute_import, print_function
6 > from __future__ import absolute_import, print_function
7 > import re
7 > import re
8 > import sys
8 > import sys
9 > if sys.platform == "win32":
10 > import os, msvcrt
11 > msvcrt.setmode(sys.stdout.fileno(), os.O_BINARY)
9 > topics = set()
12 > topics = set()
10 > topicre = re.compile(r':hg:`help ([a-z0-9\-.]+)`')
13 > topicre = re.compile(r':hg:`help ([a-z0-9\-.]+)`')
11 > for fname in sys.argv:
14 > for fname in sys.argv:
@@ -20,6 +23,6 b''
20 Check if ":hg:`help TOPIC`" is valid:
23 Check if ":hg:`help TOPIC`" is valid:
21 (use "xargs -n1 -t" to see which help commands are executed)
24 (use "xargs -n1 -t" to see which help commands are executed)
22
25
23 $ hg files 'glob:{hgext,mercurial}/**/*.py' \
26 $ hg files 'glob:{hgext,mercurial}/**/*.py' | sed 's|\\|/|g' \
24 > | xargs python "$TESTTMP/scanhelptopics.py" \
27 > | xargs python "$TESTTMP/scanhelptopics.py" \
25 > | xargs -n1 hg help > /dev/null
28 > | xargs -n1 hg help > /dev/null
General Comments 0
You need to be logged in to leave comments. Login now