Mercurial > hg
comparison tests/test-help.t @ 39707:5abc47d4ca6b
tests: quote PYTHON usage
Python3 defaults to installing under "Program Files".
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Tue, 18 Sep 2018 23:47:21 -0400 |
parents | a2880ac67ee0 |
children | 0d703063d0c8 |
comparison
equal
deleted
inserted
replaced
39706:030d558c6456 | 39707:5abc47d4ca6b |
---|---|
1770 replacement makes message meaningless. | 1770 replacement makes message meaningless. |
1771 | 1771 |
1772 This tests that section lookup by translated string isn't broken by | 1772 This tests that section lookup by translated string isn't broken by |
1773 such str.lower(). | 1773 such str.lower(). |
1774 | 1774 |
1775 $ $PYTHON <<EOF | 1775 $ "$PYTHON" <<EOF |
1776 > def escape(s): | 1776 > def escape(s): |
1777 > return ''.join('\u%x' % ord(uc) for uc in s.decode('cp932')) | 1777 > return ''.join('\u%x' % ord(uc) for uc in s.decode('cp932')) |
1778 > # translation of "record" in ja_JP.cp932 | 1778 > # translation of "record" in ja_JP.cp932 |
1779 > upper = "\x8bL\x98^" | 1779 > upper = "\x8bL\x98^" |
1780 > # str.lower()-ed section name should be treated as different one | 1780 > # str.lower()-ed section name should be treated as different one |
1804 $ cat >> $HGRCPATH <<EOF | 1804 $ cat >> $HGRCPATH <<EOF |
1805 > [extensions] | 1805 > [extensions] |
1806 > ambiguous = ./ambiguous.py | 1806 > ambiguous = ./ambiguous.py |
1807 > EOF | 1807 > EOF |
1808 | 1808 |
1809 $ $PYTHON <<EOF | sh | 1809 $ "$PYTHON" <<EOF | sh |
1810 > upper = "\x8bL\x98^" | 1810 > upper = "\x8bL\x98^" |
1811 > print("hg --encoding cp932 help -e ambiguous.%s" % upper) | 1811 > print("hg --encoding cp932 help -e ambiguous.%s" % upper) |
1812 > EOF | 1812 > EOF |
1813 \x8bL\x98^ (esc) | 1813 \x8bL\x98^ (esc) |
1814 ---- | 1814 ---- |
1815 | 1815 |
1816 Upper name should show only this message | 1816 Upper name should show only this message |
1817 | 1817 |
1818 | 1818 |
1819 $ $PYTHON <<EOF | sh | 1819 $ "$PYTHON" <<EOF | sh |
1820 > lower = "\x8bl\x98^" | 1820 > lower = "\x8bl\x98^" |
1821 > print("hg --encoding cp932 help -e ambiguous.%s" % lower) | 1821 > print("hg --encoding cp932 help -e ambiguous.%s" % lower) |
1822 > EOF | 1822 > EOF |
1823 \x8bl\x98^ (esc) | 1823 \x8bl\x98^ (esc) |
1824 ---- | 1824 ---- |
2024 better compression than "gzip". It also frequently yields better (?) | 2024 better compression than "gzip". It also frequently yields better (?) |
2025 | 2025 |
2026 Test usage of section marks in help documents | 2026 Test usage of section marks in help documents |
2027 | 2027 |
2028 $ cd "$TESTDIR"/../doc | 2028 $ cd "$TESTDIR"/../doc |
2029 $ $PYTHON check-seclevel.py | 2029 $ "$PYTHON" check-seclevel.py |
2030 $ cd $TESTTMP | 2030 $ cd $TESTTMP |
2031 | 2031 |
2032 #if serve | 2032 #if serve |
2033 | 2033 |
2034 Test the help pages in hgweb. | 2034 Test the help pages in hgweb. |