comparison tests/test-unified-test.t @ 47063:1d075b857c90 stable

tests: ensure `$PYTHON` is quoted for Windows Global installs of python3 go into "Program Files", and tons of tests fail with mysterious errors if this isn't quoted. Most of this is a followup to 0826d684a1b5, but a some of these were existing issues. Shebang lines are ignored because quoting breaks direct execution- these will need to be launched indirectly with the quoted `$PYTHON` command. Differential Revision: https://phab.mercurial-scm.org/D10633
author Matt Harbison <matt_harbison@yahoo.com>
date Sat, 01 May 2021 00:41:43 -0400
parents bd0f122f3f51
children 9987d14ad63f
comparison
equal deleted inserted replaced
47062:f38bf44e077f 47063:1d075b857c90
75 crlf\r (esc) 75 crlf\r (esc)
76 #endif 76 #endif
77 77
78 Escapes: 78 Escapes:
79 79
80 $ $PYTHON -c 'from mercurial.utils.procutil import stdout; stdout.write(b"\xff")' 80 $ "$PYTHON" -c 'from mercurial.utils.procutil import stdout; stdout.write(b"\xff")'
81 \xff (no-eol) (esc) 81 \xff (no-eol) (esc)
82 82
83 Escapes with conditions: 83 Escapes with conditions:
84 84
85 $ $PYTHON -c 'from mercurial.utils.procutil import stdout; stdout.write(b"\xff")' 85 $ "$PYTHON" -c 'from mercurial.utils.procutil import stdout; stdout.write(b"\xff")'
86 \xff (no-eol) (esc) (true !) 86 \xff (no-eol) (esc) (true !)
87 87
88 Combining esc with other markups - and handling lines ending with \r instead of \n: 88 Combining esc with other markups - and handling lines ending with \r instead of \n:
89 89
90 $ printf 'foo/bar\r' 90 $ printf 'foo/bar\r'