Mercurial > public > mercurial-scm > hg
diff tests/test-diff-upgrade.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 | 15ddf83fbf84 |
children | 0492002560f3 |
line wrap: on
line diff
--- a/tests/test-diff-upgrade.t Tue Sep 18 22:40:03 2018 -0400 +++ b/tests/test-diff-upgrade.t Tue Sep 18 23:47:21 2018 -0400 @@ -16,7 +16,7 @@ $ echo regular > regular $ echo rmregular > rmregular - $ $PYTHON -c "open('bintoregular', 'wb').write(b'\0')" + $ "$PYTHON" -c "open('bintoregular', 'wb').write(b'\0')" $ touch rmempty $ echo exec > exec $ chmod +x exec @@ -26,7 +26,7 @@ $ echo unsetexec > unsetexec $ chmod +x unsetexec $ echo binary > binary - $ $PYTHON -c "open('rmbinary', 'wb').write(b'\0')" + $ "$PYTHON" -c "open('rmbinary', 'wb').write(b'\0')" $ hg ci -Am addfiles adding binary adding bintoregular @@ -50,8 +50,8 @@ $ rm rmexec $ chmod +x setexec $ chmod -x unsetexec - $ $PYTHON -c "open('binary', 'wb').write(b'\0\0')" - $ $PYTHON -c "open('newbinary', 'wb').write(b'\0')" + $ "$PYTHON" -c "open('binary', 'wb').write(b'\0\0')" + $ "$PYTHON" -c "open('newbinary', 'wb').write(b'\0')" $ rm rmbinary $ hg addremove -s 0 adding newbinary