Mercurial > public > mercurial-scm > hg
diff tests/test-diff-upgrade.t @ 22947:c63a09b6b337
tests: use $PYTHON instead of hardcoding python
This makes running the testsuite with pypy possible.
author | Augie Fackler <raf@durin42.com> |
---|---|
date | Wed, 15 Oct 2014 15:35:59 -0400 |
parents | 7a9cbb315d84 |
children | e955549cd045 |
line wrap: on
line diff
--- a/tests/test-diff-upgrade.t Wed Oct 15 15:13:43 2014 -0400 +++ b/tests/test-diff-upgrade.t Wed Oct 15 15:35:59 2014 -0400 @@ -14,7 +14,7 @@ $ echo regular > regular $ echo rmregular > rmregular - $ python -c "file('bintoregular', 'wb').write('\0')" + $ $PYTHON -c "file('bintoregular', 'wb').write('\0')" $ touch rmempty $ echo exec > exec $ chmod +x exec @@ -24,7 +24,7 @@ $ echo unsetexec > unsetexec $ chmod +x unsetexec $ echo binary > binary - $ python -c "file('rmbinary', 'wb').write('\0')" + $ $PYTHON -c "file('rmbinary', 'wb').write('\0')" $ hg ci -Am addfiles adding binary adding bintoregular @@ -48,8 +48,8 @@ $ rm rmexec $ chmod +x setexec $ chmod -x unsetexec - $ python -c "file('binary', 'wb').write('\0\0')" - $ python -c "file('newbinary', 'wb').write('\0')" + $ $PYTHON -c "file('binary', 'wb').write('\0\0')" + $ $PYTHON -c "file('newbinary', 'wb').write('\0')" $ rm rmbinary $ hg addremove -s 0 adding newbinary