##// END OF EJS Templates
test-template: fix stdio mode on Windows...
Yuya Nishihara -
r42167:a6696540 default
parent child Browse files
Show More
@@ -1499,11 +1499,15 b' Test cbor filter:'
1499 1499
1500 1500 $ cat <<'EOF' > "$TESTTMP/decodecbor.py"
1501 1501 > from __future__ import absolute_import
1502 > from mercurial import pycompat
1502 > from mercurial import (
1503 > dispatch,
1504 > pycompat,
1505 > )
1503 1506 > from mercurial.utils import (
1504 1507 > cborutil,
1505 1508 > stringutil,
1506 1509 > )
1510 > dispatch.initstdio()
1507 1511 > items = cborutil.decodeall(pycompat.stdin.read())
1508 1512 > pycompat.stdout.write(stringutil.pprint(items, indent=1) + b'\n')
1509 1513 > EOF
@@ -673,11 +673,15 b' test CBOR style:'
673 673
674 674 $ cat <<'EOF' > "$TESTTMP/decodecborarray.py"
675 675 > from __future__ import absolute_import
676 > from mercurial import pycompat
676 > from mercurial import (
677 > dispatch,
678 > pycompat,
679 > )
677 680 > from mercurial.utils import (
678 681 > cborutil,
679 682 > stringutil,
680 683 > )
684 > dispatch.initstdio()
681 685 > data = pycompat.stdin.read()
682 686 > # our CBOR decoder doesn't support parsing indefinite-length arrays,
683 687 > # but the log output is indefinite stream by nature.
General Comments 0
You need to be logged in to leave comments. Login now