##// 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 $ cat <<'EOF' > "$TESTTMP/decodecbor.py"
1500 $ cat <<'EOF' > "$TESTTMP/decodecbor.py"
1501 > from __future__ import absolute_import
1501 > from __future__ import absolute_import
1502 > from mercurial import pycompat
1502 > from mercurial import (
1503 > dispatch,
1504 > pycompat,
1505 > )
1503 > from mercurial.utils import (
1506 > from mercurial.utils import (
1504 > cborutil,
1507 > cborutil,
1505 > stringutil,
1508 > stringutil,
1506 > )
1509 > )
1510 > dispatch.initstdio()
1507 > items = cborutil.decodeall(pycompat.stdin.read())
1511 > items = cborutil.decodeall(pycompat.stdin.read())
1508 > pycompat.stdout.write(stringutil.pprint(items, indent=1) + b'\n')
1512 > pycompat.stdout.write(stringutil.pprint(items, indent=1) + b'\n')
1509 > EOF
1513 > EOF
@@ -673,11 +673,15 b' test CBOR style:'
673
673
674 $ cat <<'EOF' > "$TESTTMP/decodecborarray.py"
674 $ cat <<'EOF' > "$TESTTMP/decodecborarray.py"
675 > from __future__ import absolute_import
675 > from __future__ import absolute_import
676 > from mercurial import pycompat
676 > from mercurial import (
677 > dispatch,
678 > pycompat,
679 > )
677 > from mercurial.utils import (
680 > from mercurial.utils import (
678 > cborutil,
681 > cborutil,
679 > stringutil,
682 > stringutil,
680 > )
683 > )
684 > dispatch.initstdio()
681 > data = pycompat.stdin.read()
685 > data = pycompat.stdin.read()
682 > # our CBOR decoder doesn't support parsing indefinite-length arrays,
686 > # our CBOR decoder doesn't support parsing indefinite-length arrays,
683 > # but the log output is indefinite stream by nature.
687 > # but the log output is indefinite stream by nature.
General Comments 0
You need to be logged in to leave comments. Login now