comparison tests/test-remotefilelog-http.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 a495435d980e
children
comparison
equal deleted inserted replaced
47062:f38bf44e077f 47063:1d075b857c90
12 $ echo y > y 12 $ echo y > y
13 $ hg commit -qAm x 13 $ hg commit -qAm x
14 $ hg serve -p $HGPORT -d --pid-file=../hg1.pid -E ../error.log -A ../access.log 14 $ hg serve -p $HGPORT -d --pid-file=../hg1.pid -E ../error.log -A ../access.log
15 15
16 Build a query string for later use: 16 Build a query string for later use:
17 $ GET=`hg debugdata -m 0 | $PYTHON -c \ 17 $ GET=`hg debugdata -m 0 | "$PYTHON" -c \
18 > 'import sys ; print([("?cmd=x_rfl_getfile&file=%s&node=%s" % tuple(s.split("\0"))) for s in sys.stdin.read().splitlines()][0])'` 18 > 'import sys ; print([("?cmd=x_rfl_getfile&file=%s&node=%s" % tuple(s.split("\0"))) for s in sys.stdin.read().splitlines()][0])'`
19 19
20 $ cd .. 20 $ cd ..
21 $ cat hg1.pid >> $DAEMON_PIDS 21 $ cat hg1.pid >> $DAEMON_PIDS
22 22